Installation
npm install --save @types/jquery.notify
Summary
This package contains type definitions for jquery.notify (https://github.com/ehynds/jquery-notify (jQuery Notify UI Widget by Eric Hynds)).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.notify.
index.d.ts
/// <reference types="jquery"/>
interface JQueryNotifyOptions {
close?: (() => void) | undefined;
open?: (() => void) | undefined;
custom?: boolean | undefined;
disabled?: boolean | undefined;
expires?: number | undefined;
queue?: boolean | undefined;
speed?: number | undefined;
stack?: "below" | "above" | undefined;
}
interface JQuery {
notify(options?: JQueryNotifyOptions): JQueryNotifyWidget;
notify(method: string, template: number, params?: object, opts?: JQueryNotifyOptions): JQueryNotifyInstance;
notify(method: string, params?: object, opts?: JQueryNotifyOptions): JQueryNotifyInstance;
}
interface JQueryNotifyInstance {
element: JQuery;
isOpen: boolean;
options: JQueryNotifyOptions;
close(): void;
open(): void;
}
interface JQueryNotifyWidget extends JQuery {
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Sergei Dorogin.