Skip to content

Commit

Permalink
fix: export CloseButtonProps #1165
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Dec 1, 2024
1 parent 1274c8d commit b51a5f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './style.css';

export { useToastContainer, useToast } from './hooks';
export { cssTransition, collapseToast } from './utils';
export { ToastContainer, Bounce, Flip, Slide, Zoom, Icons } from './components';
Expand All @@ -24,3 +25,4 @@ export type {
ClearWaitingQueueFunc,
OnChangeCallback
} from './types';
export type { CloseButtonProps } from './components/CloseButton';
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ export interface Toast {
props: ToastProps;
toggle?: (v: boolean) => void;
removedByUser?: true | undefined;
isActive: boolean;
staleId?: Id;
}

export type ToastItemStatus = 'added' | 'removed' | 'updated';
Expand Down

0 comments on commit b51a5f1

Please sign in to comment.