File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,10 @@ toast.isActive = (id: Id) => {
233
233
return isToastActive ;
234
234
} ;
235
235
236
- toast . update = ( toastId : Id , options : UpdateOptions = { } ) => {
236
+ toast . update = < TData = unknown > (
237
+ toastId : Id ,
238
+ options : UpdateOptions < TData > = { }
239
+ ) => {
237
240
// if you call toast and toast.update directly nothing will be displayed
238
241
// this is why I defered the update
239
242
setTimeout ( ( ) => {
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ interface CommonOptions {
166
166
/**
167
167
* @deprecated
168
168
* ⚠️ Will be removed in the next major release. You can pass a react component with you handler instead.
169
- *
169
+ *
170
170
* Fired when clicking inside toaster
171
171
*/
172
172
onClick ?: ( event : React . MouseEvent ) => void ;
You can’t perform that action at this time.
0 commit comments