- declare type ICON_TYPE = 'alert' | 'success' | 'error' | 'warning' | 'information' | 'confirm' | 'fail';
- export interface ToastParams {
- icon?: ICON_TYPE;
- text?: string;
- duration?: number;
- delay?: number;
- taurusToastStyle?: boolean;
- }
- declare function toast(params: ToastParams): Promise<{}>;
- declare namespace toast {
- var version: {
- android: string;
- ios: string;
- };
- }
- export default toast;
|