notify.d.ts 861 B

1234567891011121314
  1. import type { VNode } from 'vue';
  2. import type { NotificationOptions, Notify } from './notification';
  3. /**
  4. * This function gets called when user click `x` button or press `esc` or the time reached its limitation.
  5. * Emitted by transition@before-leave event so that we can fetch the current notification.offsetHeight, if this was called
  6. * by @after-leave the DOM element will be removed from the page thus we can no longer fetch the offsetHeight.
  7. * @param {String} id notification id to be closed
  8. * @param {Position} position the positioning strategy
  9. * @param {Function} userOnClose the callback called when close passed by user
  10. */
  11. export declare function close(id: string, position: NotificationOptions['position'], userOnClose?: (vm: VNode) => void): void;
  12. export declare function closeAll(): void;
  13. declare const _default: Notify;
  14. export default _default;