Skip to content

Commit

Permalink
types: export notification's ArgsProps type as NotificationArgsProps (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Sep 30, 2023
1 parent 2c83c30 commit 780a50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/index.ts
Expand Up @@ -85,6 +85,7 @@ export type { ArgsProps as MessageArgsProps } from './message';
export { default as Modal } from './modal';
export type { ModalFuncProps, ModalProps } from './modal';
export { default as notification } from './notification';
export type { ArgsProps as NotificationArgsProps } from './notification';
export { default as Pagination } from './pagination';
export type { PaginationProps } from './pagination';
export { default as Popconfirm } from './popconfirm';
Expand Down
2 changes: 2 additions & 0 deletions components/notification/index.tsx
Expand Up @@ -6,6 +6,8 @@ import type { ArgsProps, GlobalConfigProps, NotificationInstance } from './inter
import PurePanel from './PurePanel';
import useNotification, { useInternalNotification } from './useNotification';

export type { ArgsProps };

let notification: GlobalNotification | null = null;

let act: (callback: VoidFunction) => Promise<void> | void = (callback: VoidFunction) => callback();
Expand Down

0 comments on commit 780a50b

Please sign in to comment.