From 0bc488c85c4bbc5b900cf5ff7b09227345b87763 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 8 Mar 2021 12:27:49 +0000 Subject: fix(runtime/js): add navigator interface objects (#9685) --- cli/dts/lib.deno.window.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.window.d.ts') 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. -- cgit v1.2.3