File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function toast<TData = unknown>(
85
85
content : ToastContent < TData > ,
86
86
options ?: ToastOptions
87
87
) {
88
- return dispatchToast ( content , mergeOptions ( TYPE . DEFAULT , options ) ) ;
88
+ return dispatchToast ( content , mergeOptions ( Type . DEFAULT , options ) ) ;
89
89
}
90
90
91
91
toast . loading = < TData = unknown > (
@@ -94,7 +94,7 @@ toast.loading = <TData = unknown>(
94
94
) =>
95
95
dispatchToast (
96
96
content ,
97
- mergeOptions ( TYPE . DEFAULT , {
97
+ mergeOptions ( Type . DEFAULT , {
98
98
isLoading : true ,
99
99
autoClose : false ,
100
100
closeOnClick : false ,
@@ -195,7 +195,7 @@ toast.warn = toast.warning;
195
195
toast . dark = ( content : ToastContent , options ?: ToastOptions ) =>
196
196
dispatchToast (
197
197
content ,
198
- mergeOptions ( TYPE . DEFAULT , {
198
+ mergeOptions ( Type . DEFAULT , {
199
199
theme : 'dark' ,
200
200
...options
201
201
} )
Original file line number Diff line number Diff line change @@ -195,11 +195,17 @@ export interface ToastOptions<Data = {}> extends CommonOptions {
195
195
className ?: ToastClassName ;
196
196
197
197
/**
198
+ * @deprecated
199
+ * ⚠️ Will be removed in the next major release. You can rely on `toast.onChange` instead.
200
+ *
198
201
* Called when toast is mounted.
199
202
*/
200
203
onOpen ?: < T = { } > ( props : T ) => void ;
201
204
202
205
/**
206
+ * @deprecated
207
+ * ⚠️ Will be removed in the next major release. You can rely on `toast.onChange` instead.
208
+ *
203
209
* Called when toast is unmounted.
204
210
*/
205
211
onClose ?: < T = { } > ( props : T ) => void ;
You can’t perform that action at this time.
0 commit comments