Skip to content

Commit

Permalink
chore: add 'success', 'error' and 'info' to ToastType (#510)
Browse files Browse the repository at this point in the history
* chore: typeScrypt for type of toastMessage

* Allow to the user to add a custom type
  • Loading branch information
seyedmostafahasani authored Dec 4, 2023
1 parent 8a023cc commit 58d77ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

export type ReactChildren = React.ReactNode;

export type ToastType = string;
export type ToastType = 'success' | 'error' | 'info' | (string & {});
export type ToastPosition = 'top' | 'bottom';

export type ToastOptions = {
Expand Down

0 comments on commit 58d77ad

Please sign in to comment.