You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
642 B
13 lines
642 B
type toastOptions = { |
|
level: "success" | "warning" | "error" | "normal" | "loading" |
|
autoClose?: boolean |
|
callback?: Function |
|
closable?: boolean |
|
} |
|
|
|
export type _msg = { |
|
alert: (title: string, message?: string | { [key: string]: any }, callback?: (result?: boolean) => void) => void |
|
confirm: (title: string, message?: string | { [key: string]: any }, callback?: (result: boolean) => void) => void |
|
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void |
|
toast: (message: string | Obj, options?: toastOptions | string, context?: HTMLElement) => void |
|
}
|
|
|