diff options
author | Tomasz GaĆkowski <galkowski.t@gmail.com> | 2020-05-15 15:51:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 09:51:49 -0400 |
commit | 8440d765d51c0886f45843ad217a6a5dbabd5049 (patch) | |
tree | 78b5b071b0757da9ee49efd4fdba006ff0e04782 /std/node/timers.ts | |
parent | ce57a1824d3c89d19460efb315b273a43d18373e (diff) |
fix: setTimeout and friends have too strict types (#5412)
Diffstat (limited to 'std/node/timers.ts')
-rw-r--r-- | std/node/timers.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/std/node/timers.ts b/std/node/timers.ts index b942d5fbc..b91985069 100644 --- a/std/node/timers.ts +++ b/std/node/timers.ts @@ -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; |