# @types/jquery-mockjax

> TypeScript definitions for jquery-mockjax

Latest version **2.3.6** (published 2024-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jquery-mockjax
pnpm add @types/jquery-mockjax
yarn add @types/jquery-mockjax
bun add @types/jquery-mockjax
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.3.6 |
| Published | 2024-01-25 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jquery-mockjax
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-mockjax
- npm.io page: https://npm.io/package/@types/jquery-mockjax

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 2.3.6 (latest) — 2024-01-25
- 2.3.5 (ts4.5) — 2023-11-07
- 2.3.2 (ts3.6) — 2021-07-08
- 2.3.1 (ts3.2) — 2020-10-24
- 2.3.0 (ts2.3) — 2018-06-13
- 2.0.29 (ts2.0) — 2017-06-15
- 2.3.4 — 2023-10-18
- 2.3.3 — 2023-09-15
- 2.0.31 — 2017-08-21
- 2.0.30 — 2017-06-27
- 2.0.28 — 2016-09-19
- 2.0.27 — 2016-07-14
- 2.0.26-alpha — 2016-07-08
- 2.0.25-alpha — 2016-07-04
- 2.0.24-alpha — 2016-07-02
- … 6 more at https://npm.io/package/@types/jquery-mockjax/versions

## README

# Installation
> `npm install --save @types/jquery-mockjax`

# Summary
This package contains type definitions for jquery-mockjax (https://github.com/jakerella/jquery-mockjax).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-mockjax.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-mockjax/index.d.ts)
````ts
/// <reference types="jquery" />

type MockJaxLoggingFunction = (message?: any, ...additionalParameters: any[]) => void;

interface MockJaxStandardLogger {
    error?: MockJaxLoggingFunction | undefined;
    warn?: MockJaxLoggingFunction | undefined;
    info?: MockJaxLoggingFunction | undefined;
    log?: MockJaxLoggingFunction | undefined;
    debug?: MockJaxLoggingFunction | undefined;
}

interface MockJaxCustomLogger {
    [key: string]: MockJaxLoggingFunction;
}

interface MockJaxSettingsHeaders {
    [key: string]: string;
}

interface MockJaxSettings {
    url?: string | RegExp | undefined;
    urlParams?: string[] | undefined;
    data?: any;
    type?: string | undefined;
    headers?: MockJaxSettingsHeaders | undefined;
    logging?: boolean | number | undefined;
    status?: number | undefined;
    statusText?: string | undefined;
    responseTime?: number | undefined;
    isTimeout?: boolean | undefined;
    dataType?: string | undefined;
    contentType?: string | undefined;
    response?: ((settings: any, done?: Function) => void) | undefined;
    responseText?: string | Object | undefined;
    responseXml?: string | undefined;
    proxy?: string | undefined;
    proxyType?: string | undefined;
    lastModified?: string | undefined;
    etag?: string | undefined;
    onAfterSuccess?: Function | undefined;
    onAfterError?: Function | undefined;
    onAfterComplete?: Function | undefined;
    logger?: MockJaxStandardLogger | MockJaxCustomLogger | undefined;
    logLevelMethods?: string[] | undefined;
    namespace?: string | undefined;
    throwUnmocked?: boolean | undefined;
    retainAjaxCalls?: boolean | undefined;
}

interface MockJaxStatic {
    (options: MockJaxSettings): number;
    (options: MockJaxSettings[]): number[];
    handler(id?: number): any;
    clear(id?: number): void;
    mockedAjaxCalls(): any[];
    unfiredHandlers(): any[];
    unmockedAjaxCalls(): any[];
    clearRetainedAjaxCalls(): void;
}

interface JQueryStatic {
    mockjax: MockJaxStatic;
    mockjaxSettings: MockJaxSettings;
}

````

### Additional Details
 * Last updated: Thu, 25 Jan 2024 22:35:26 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Laszlo Jakab](https://github.com/laszlojakab), and [James Johnson](https://github.com/hasaki).

---
_Source: https://npm.io/package/@types/jquery-mockjax · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
