We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e5935 commit 39bb9c9Copy full SHA for 39bb9c9
src/core/types.ts
@@ -1,6 +1,12 @@
1
import { CSSProperties } from 'react';
2
3
-export type ToastType = 'success' | 'error' | 'loading' | 'blank' | 'custom';
+export type ToastType =
4
+ | 'success'
5
+ | 'error'
6
+ | 'loading'
7
+ | 'blank'
8
+ | 'custom'
9
+ | 'warn';
10
export type ToastPosition =
11
| 'top-left'
12
| 'top-center'
@@ -68,10 +74,9 @@ export type ToastOptions = Partial<
68
74
>
69
75
>;
70
76
71
-export type DefaultToastOptions = ToastOptions &
72
- {
73
- [key in ToastType]?: ToastOptions;
- };
77
+export type DefaultToastOptions = ToastOptions & {
78
+ [key in ToastType]?: ToastOptions;
79
+};
80
81
export interface ToasterProps {
82
position?: ToastPosition;
0 commit comments