fix(Notify): Type 'Timeout' is not assignable to type 'number' (#8477)
Co-authored-by: yangwk <paul>
This commit is contained in:
co-authored by
yangwk <paul>
parent
6c1b7e542f
commit
9849c76f72
@@ -59,7 +59,7 @@ function Notify(options: NotifyMessage | NotifyOptions) {
|
|||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
|
|
||||||
if (options.duration! > 0) {
|
if (options.duration! > 0) {
|
||||||
timer = setTimeout(Notify.clear, options.duration);
|
timer = window.setTimeout(Notify.clear, options.duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
|
|||||||
Reference in New Issue
Block a user