DefinitelyTyped/types/jquery-alertable/index.d.ts
Leonard Thieu 1c3565933c :(
2017-06-13 13:00:42 -04:00

31 lines
871 B
TypeScript

// Type definitions for jquery-alertable 1.0.2
// Project: https://github.com/claviska/jquery-alertable
// Definitions by: Steven Robertson <https://github.com/stever>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <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;
html?: boolean;
cancelButton?: string;
okButton?: string;
overlay?: string;
prompt?: string;
modal?: string;
hide?: Function;
show?: Function;
}