nit: removing the NodeJS.Timer type to allow typescript to infer the return
This commit is contained in:
parent
abc72b163a
commit
fd0e6ffb37
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
function shim(callback: IdleRequestCallback, options?: IdleRequestOptions): NodeJS.Timeout {
|
||||
function shim(callback: IdleRequestCallback, options?: IdleRequestOptions) {
|
||||
const timeout = options?.timeout ?? 50;
|
||||
const start = Date.now();
|
||||
|
||||
|
|
Loading…
Reference in a new issue