notify.d.ts 543B

123456789101112131415161718192021
  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;