summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.shared_globals.d.ts
diff options
context:
space:
mode:
authorTomasz GaƂkowski <galkowski.t@gmail.com>2020-05-15 15:51:49 +0200
committerGitHub <noreply@github.com>2020-05-15 09:51:49 -0400
commit8440d765d51c0886f45843ad217a6a5dbabd5049 (patch)
tree78b5b071b0757da9ee49efd4fdba006ff0e04782 /cli/js/lib.deno.shared_globals.d.ts
parentce57a1824d3c89d19460efb315b273a43d18373e (diff)
fix: setTimeout and friends have too strict types (#5412)
Diffstat (limited to 'cli/js/lib.deno.shared_globals.d.ts')
-rw-r--r--cli/js/lib.deno.shared_globals.d.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/lib.deno.shared_globals.d.ts b/cli/js/lib.deno.shared_globals.d.ts
index 617a75fea..8f3160e5d 100644
--- a/cli/js/lib.deno.shared_globals.d.ts
+++ b/cli/js/lib.deno.shared_globals.d.ts
@@ -176,16 +176,16 @@ declare namespace WebAssembly {
/** Sets a timer which executes a function once after the timer expires. */
declare function setTimeout(
- cb: (...args: unknown[]) => void,
+ cb: (...args: any[]) => void,
delay?: number,
- ...args: unknown[]
+ ...args: any[]
): number;
/** Repeatedly calls a function , with a fixed time delay between each call. */
declare function setInterval(
- cb: (...args: unknown[]) => void,
+ cb: (...args: any[]) => void,
delay?: number,
- ...args: unknown[]
+ ...args: any[]
): number;
declare function clearTimeout(id?: number): void;
declare function clearInterval(id?: number): void;