notify.d.ts 543 B

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