Files
DefinitelyTyped/types/jquery-alertable/index.d.ts
2017-03-24 14:27:52 -07:00

30 lines
844 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
/// <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;
}