diff options
author | 迷渡 <justjavac@gmail.com> | 2019-09-19 23:40:52 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-19 11:40:52 -0400 |
commit | 1b1ae65a4a2acd55ead86c17e388f10a0e08938d (patch) | |
tree | 8bc2278afa2a89a5152cc47f2ac33a39560df41e /js/lib.deno_runtime.d.ts | |
parent | 5102eec92b6150d788ece49fa906c542df63fe41 (diff) |
Make `window` compatible with ts 3.6 (#2984)
Diffstat (limited to 'js/lib.deno_runtime.d.ts')
-rw-r--r-- | js/lib.deno_runtime.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |