mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
871 B
TypeScript
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;
|
|
}
|