Skip to content

Commit

Permalink
fix: setTimeout and friends have too strict types (denoland/deno#5412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gałkowski authored and caspervonb committed Jan 31, 2021
1 parent 0b82cee commit a93bd5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/timers.ts
Expand Up @@ -5,7 +5,9 @@ export const clearTimeout = window.clearTimeout;
export const setInterval = window.setInterval;
export const clearInterval = window.clearInterval;
export const setImmediate = (
cb: (...args: unknown[]) => void,
...args: unknown[]
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cb: (...args: any[]) => void,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...args: any[]
): number => window.setTimeout(cb, 0, ...args);
export const clearImmediate = window.clearTimeout;

0 comments on commit a93bd5a

Please sign in to comment.