summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/lib.deno.shared_globals.d.ts4
-rw-r--r--cli/dts/lib.deno.window.d.ts8
-rw-r--r--cli/dts/lib.deno.worker.d.ts12
-rw-r--r--cli/tests/types.out2
4 files changed, 12 insertions, 14 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts
index 9f40e2521..9e324258d 100644
--- a/cli/dts/lib.deno.shared_globals.d.ts
+++ b/cli/dts/lib.deno.shared_globals.d.ts
@@ -222,8 +222,6 @@ interface DOMStringList {
type BufferSource = ArrayBufferView | ArrayBuffer;
-declare const isConsoleInstance: unique symbol;
-
declare interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
@@ -584,7 +582,7 @@ declare class Performance {
now(): number;
}
-declare const performance: Performance;
+declare var performance: Performance;
declare interface PerformanceMarkOptions {
/** Metadata to be included in the mark. */
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index 61c5abf8a..5c113cd0d 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -17,9 +17,9 @@ declare interface Window extends EventTarget {
Deno: typeof Deno;
}
-declare const window: Window & typeof globalThis;
-declare const self: Window & typeof globalThis;
-declare const onload: ((this: Window, ev: Event) => any) | null;
-declare const onunload: ((this: Window, ev: Event) => any) | null;
+declare var window: Window & typeof globalThis;
+declare var self: Window & typeof globalThis;
+declare var onload: ((this: Window, ev: Event) => any) | null;
+declare var onunload: ((this: Window, ev: Event) => any) | null;
/* eslint-enable @typescript-eslint/no-explicit-any */
diff --git a/cli/dts/lib.deno.worker.d.ts b/cli/dts/lib.deno.worker.d.ts
index 95aa16139..9f8845f4a 100644
--- a/cli/dts/lib.deno.worker.d.ts
+++ b/cli/dts/lib.deno.worker.d.ts
@@ -18,9 +18,9 @@ declare interface DedicatedWorkerGlobalScope {
Deno: typeof Deno;
}
-declare const self: DedicatedWorkerGlobalScope & typeof globalThis;
-declare let onmessage: ((e: { data: any }) => Promise<void> | void) | undefined;
-declare let onerror:
+declare var self: DedicatedWorkerGlobalScope & typeof globalThis;
+declare var onmessage: ((e: { data: any }) => Promise<void> | void) | undefined;
+declare var onerror:
| ((
msg: string,
source: string,
@@ -29,9 +29,9 @@ declare let onerror:
e: Event,
) => boolean | void)
| undefined;
-declare const close: typeof __workerMain.close;
-declare const name: typeof __workerMain.name;
-declare const postMessage: typeof __workerMain.postMessage;
+declare var close: typeof __workerMain.close;
+declare var name: typeof __workerMain.name;
+declare var postMessage: typeof __workerMain.postMessage;
declare namespace __workerMain {
export let onmessage: (e: { data: any }) => void;
diff --git a/cli/tests/types.out b/cli/tests/types.out
index 85bee7698..ee59f57c1 100644
--- a/cli/tests/types.out
+++ b/cli/tests/types.out
@@ -1,4 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
[WILDCARD]
declare namespace Deno [WILDCARD]
-declare const window: Window [WILDCARD]
+declare var window: Window [WILDCARD]