notify.d.ts 513 B

12345678910111213141516171819
  1. interface NotifyOptions {
  2. type?: 'primary' | 'success' | 'danger' | 'warning';
  3. color?: string;
  4. zIndex?: number;
  5. message: string;
  6. context?: any;
  7. duration?: number;
  8. selector?: string;
  9. background?: string;
  10. safeAreaInsetTop?: boolean;
  11. onClick?: () => void;
  12. onOpened?: () => void;
  13. onClose?: () => void;
  14. }
  15. declare function Notify(options: NotifyOptions | string): any;
  16. declare namespace Notify {
  17. var clear: (options?: NotifyOptions) => void;
  18. }
  19. export default Notify;