summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.window.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.deno.window.d.ts')
-rw-r--r--cli/dts/lib.deno.window.d.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index 2d46e5fe0..3eebab677 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -18,19 +18,24 @@ declare class Window extends EventTarget {
confirm: (message?: string) => boolean;
prompt: (message?: string, defaultValue?: string) => string | null;
Deno: typeof Deno;
+ Navigator: typeof Navigator;
navigator: Navigator;
+ Location: typeof Location;
+ location: Location;
}
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;
-declare var navigator: Navigator;
-declare interface Navigator {
+declare class Navigator {
+ constructor();
readonly gpu: GPU;
}
+declare var navigator: Navigator;
+
/**
* Shows the given message and waits for the enter key pressed.
* If the stdin is not interactive, it does nothing.