fix(Notify): Type 'Timeout' is not assignable to type 'number' (#8477)

Co-authored-by: yangwk <paul>
This commit is contained in:
yangwenkai123
2021-04-08 17:09:34 +08:00
committed by GitHub
parent 6c1b7e542f
commit 9849c76f72

View File

@@ -59,7 +59,7 @@ function Notify(options: NotifyMessage | NotifyOptions) {
clearTimeout(timer);
if (options.duration! > 0) {
timer = setTimeout(Notify.clear, options.duration);
timer = window.setTimeout(Notify.clear, options.duration);
}
return instance;