From 1b1ae65a4a2acd55ead86c17e388f10a0e08938d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E6=B8=A1?= Date: Thu, 19 Sep 2019 23:40:52 +0800 Subject: Make `window` compatible with ts 3.6 (#2984) --- js/lib.deno_runtime.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lib.deno_runtime.d.ts') diff --git a/js/lib.deno_runtime.d.ts b/js/lib.deno_runtime.d.ts index fe60d710b..ed335216c 100644 --- a/js/lib.deno_runtime.d.ts +++ b/js/lib.deno_runtime.d.ts @@ -1217,7 +1217,7 @@ declare namespace Deno { // @url js/globals.ts declare interface Window { - window: Window; + window: Window & typeof globalThis; atob: typeof textEncoding.atob; btoa: typeof textEncoding.btoa; fetch: typeof fetchTypes.fetch; @@ -1263,7 +1263,7 @@ declare interface Window { Deno: typeof Deno; } -declare const window: Window; +declare const window: Window & typeof globalThis; declare const atob: typeof textEncoding.atob; declare const btoa: typeof textEncoding.btoa; declare const fetch: typeof fetchTypes.fetch; -- cgit v1.2.3