toast.d.ts 434 B

12345678910111213141516
  1. declare type ICON_TYPE = 'alert' | 'success' | 'error' | 'warning' | 'information' | 'confirm' | 'fail';
  2. export interface ToastParams {
  3. icon?: ICON_TYPE;
  4. text?: string;
  5. duration?: number;
  6. delay?: number;
  7. taurusToastStyle?: boolean;
  8. }
  9. declare function toast(params: ToastParams): Promise<{}>;
  10. declare namespace toast {
  11. var version: {
  12. android: string;
  13. ios: string;
  14. };
  15. }
  16. export default toast;