summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.window.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-10-11 23:04:43 +0100
committerGitHub <noreply@github.com>2020-10-12 09:04:43 +1100
commit5f3028af13c25fb3af8f36d3d5913ef0688e5ce7 (patch)
treed997dc40bb558345fa490eaa04730c629c5275f8 /cli/dts/lib.deno.window.d.ts
parent265a9fb9323a11067b4b826acc7624f2e62f1102 (diff)
fix(cli/rt/main): Add global interface objects (#7875)
Diffstat (limited to 'cli/dts/lib.deno.window.d.ts')
-rw-r--r--cli/dts/lib.deno.window.d.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index 5c113cd0d..03341636f 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -7,7 +7,8 @@
/// <reference lib="deno.shared_globals" />
/// <reference lib="esnext" />
-declare interface Window extends EventTarget {
+declare class Window extends EventTarget {
+ new(): Window;
readonly window: Window & typeof globalThis;
readonly self: Window & typeof globalThis;
onload: ((this: Window, ev: Event) => any) | null;