From 8440d765d51c0886f45843ad217a6a5dbabd5049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Ga=C5=82kowski?= Date: Fri, 15 May 2020 15:51:49 +0200 Subject: fix: setTimeout and friends have too strict types (#5412) --- std/node/timers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'std/node') 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; -- cgit v1.2.3