UNPKG

sweetalert

Version:

A beautiful replacement for JavaScript's "alert"

14 lines (13 loc) 492 B
import { ActionOptions, SwalState } from './modules/state'; import { SwalOptions } from './modules/options'; export declare type SwalParams = (string | Partial<SwalOptions>)[]; export interface SweetAlert { (...params: SwalParams): Promise<any>; close?(namespace?: string): void; getState?(): SwalState; setActionValue?(opts: string | ActionOptions): void; stopLoading?(): void; setDefaults?(opts: object): void; } declare const swal: SweetAlert; export default swal;