Skip to content

Commit 58d77ad

Browse files
chore: add 'success', 'error' and 'info' to ToastType (#510)
* chore: typeScrypt for type of toastMessage * Allow to the user to add a custom type
1 parent 8a023cc commit 58d77ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
export type ReactChildren = React.ReactNode;
1212

13-
export type ToastType = string;
13+
export type ToastType = 'success' | 'error' | 'info' | (string & {});
1414
export type ToastPosition = 'top' | 'bottom';
1515

1616
export type ToastOptions = {

0 commit comments

Comments
 (0)