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