Files
DefinitelyTyped/jquery-alertable/jquery-alertable.d.ts
2016-10-03 10:20:58 -07:00

30 lines
858 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 path="../jquery/jquery.d.ts"/>
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;
}