npm.io
1.0.6 • Published 2 years ago

@types/jquery-alertable

Licence
MIT
Version
1.0.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jquery-alertable

Summary

This package contains type definitions for jquery-alertable (https://github.com/claviska/jquery-alertable).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-alertable.

index.d.ts

/// <reference types="jquery"/>

interface JQueryStatic {
    alertable: Alertable;
}

interface Alertable {
    alert(message: string, options?: AlertableOptions): JQueryPromise<void>;
    confirm(message: string, options?: AlertableOptions): JQueryPromise<void>;
    prompt(message: string, options?: AlertableOptions): JQueryPromise<void>;
    defaults: AlertableOptions;
}

interface AlertableOptions {
    container?: string | undefined;
    html?: boolean | undefined;
    cancelButton?: string | undefined;
    okButton?: string | undefined;
    overlay?: string | undefined;
    prompt?: string | undefined;
    modal?: string | undefined;
    hide?: Function | undefined;
    show?: Function | undefined;
}

Additional Details

  • Last updated: Tue, 30 Jan 2024 2145 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Steven Robertson.