Created
November 12, 2021 07:17
-
-
Save davidjbeaver/1d22f8871ac0245c6e150e232aad76b7 to your computer and use it in GitHub Desktop.
SolidJS Toast Tutorial - types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type ToastObject = { | |
toastId: string; | |
toastType: ToastType, | |
message: string | |
} | |
export enum ToastType { | |
Success = "is-success", | |
Error = "is-error", | |
Warning = "is-warning", | |
Info = "is-info" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment