summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.worker.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-09-25 22:23:35 +0100
committerGitHub <noreply@github.com>2020-09-26 07:23:35 +1000
commit0ffaaba1648bab0cf8da04bbb9a2e1fac2ac60aa (patch)
tree6cf63e366f298615ea3f9f52f73c55be7c18ca3e /cli/dts/lib.deno.worker.d.ts
parenteb7f70c0b04d07feb30d41418935a3521811f8f8 (diff)
fix(cli/dts): Use var instead of const and let for globals (#7680)
Diffstat (limited to 'cli/dts/lib.deno.worker.d.ts')
-rw-r--r--cli/dts/lib.deno.worker.d.ts12
1 files changed, 6 insertions, 6 deletions
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;