summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.shared_globals.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/lib.deno.shared_globals.d.ts')
-rw-r--r--cli/js/lib.deno.shared_globals.d.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/js/lib.deno.shared_globals.d.ts b/cli/js/lib.deno.shared_globals.d.ts
index 58d25cea4..7bb987ef4 100644
--- a/cli/js/lib.deno.shared_globals.d.ts
+++ b/cli/js/lib.deno.shared_globals.d.ts
@@ -219,6 +219,10 @@ declare function clearInterval(id?: number): void;
*/
declare function clearTimeout(id?: number): void;
+interface VoidFunction {
+ (): void;
+}
+
/** A microtask is a short function which is executed after the function or
* module which created it exits and only if the JavaScript execution stack is
* empty, but before returning control to the event loop being used to drive the
@@ -227,7 +231,7 @@ declare function clearTimeout(id?: number): void;
*
* queueMicrotask(() => { console.log('This event loop stack is complete'); });
*/
-declare function queueMicrotask(func: Function): void;
+declare function queueMicrotask(func: VoidFunction): void;
declare var console: Console;
declare var crypto: Crypto;
@@ -266,11 +270,6 @@ declare function removeEventListener(
options?: boolean | EventListenerOptions | undefined
): void;
-declare interface ImportMeta {
- url: string;
- main: boolean;
-}
-
interface DomIterable<K, V> {
keys(): IterableIterator<K>;
values(): IterableIterator<V>;