summaryrefslogtreecommitdiff
path: root/std/node/timers.ts
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2020-11-09 06:25:13 -0800
committerGitHub <noreply@github.com>2020-11-09 09:25:13 -0500
commit8b7f5531ee1ccde897e87890e9aabc554fedb9dd (patch)
tree117a85b98d1488c290d8acc392cfb99b1b21f8e0 /std/node/timers.ts
parent293cae5e1ff2a5768e2f3a73cc18f99acc3fbfbd (diff)
feat(std/node): consistent Node.js builtin shapes (#8274)
Diffstat (limited to 'std/node/timers.ts')
-rw-r--r--std/node/timers.ts16
1 files changed, 3 insertions, 13 deletions
diff --git a/std/node/timers.ts b/std/node/timers.ts
index 872e1f9ae..095f6c5dc 100644
--- a/std/node/timers.ts
+++ b/std/node/timers.ts
@@ -1,14 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-// TODO: implement the 'NodeJS.Timeout' and 'NodeJS.Immediate' versions of the timers.
-// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1163ead296d84e7a3c80d71e7c81ecbd1a130e9a/types/node/v12/globals.d.ts#L1120-L1131
-export const setTimeout = window.setTimeout;
-export const clearTimeout = window.clearTimeout;
-export const setInterval = window.setInterval;
-export const clearInterval = window.clearInterval;
-export const setImmediate = (
- // deno-lint-ignore no-explicit-any
- cb: (...args: any[]) => void,
- // deno-lint-ignore no-explicit-any
- ...args: any[]
-): number => window.setTimeout(cb, 0, ...args);
-export const clearImmediate = window.clearTimeout;
+export * from "./_timers.ts";
+import * as m from "./_timers.ts";
+export default m;