
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
@types/jquery-mockjax
Advanced tools
TypeScript definitions for jquery-mockjax
npm install --save @types/jquery-mockjax
This package contains type definitions for jquery-mockjax (https://github.com/jakerella/jquery-mockjax).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-mockjax.
/// <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;
}
These definitions were written by Laszlo Jakab, and James Johnson.
FAQs
TypeScript definitions for jquery-mockjax
The npm package @types/jquery-mockjax receives a total of 4,135 weekly downloads. As such, @types/jquery-mockjax popularity was classified as popular.
We found that @types/jquery-mockjax demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.