// Type definitions for jquery-alertable 1.0.2 // Project: https://github.com/claviska/jquery-alertable // Definitions by: Steven Robertson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// interface JQueryStatic { alertable: Alertable; } interface Alertable { alert(message: string, options?: AlertableOptions): JQueryPromise; confirm(message: string, options?: AlertableOptions): JQueryPromise; prompt(message: string, options?: AlertableOptions): JQueryPromise; defaults: AlertableOptions; } interface AlertableOptions { container?: string; html?: boolean; cancelButton?: string; okButton?: string; overlay?: string; prompt?: string; modal?: string; hide?: Function; show?: Function; }