nit: removing the NodeJS.Timer type to allow typescript to infer the return

This commit is contained in:
Tony Sullivan 2022-06-27 12:06:42 -05:00
parent abc72b163a
commit fd0e6ffb37

View file

@ -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();