diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-03-08 12:27:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 13:27:49 +0100 |
commit | 0bc488c85c4bbc5b900cf5ff7b09227345b87763 (patch) | |
tree | 315a6bded05a4ab5d9946f837e4ec98162420089 /cli/dts/lib.deno.window.d.ts | |
parent | ceeebe46eeb548ab3048f244a942973d9e8a2f41 (diff) |
fix(runtime/js): add navigator interface objects (#9685)
Diffstat (limited to 'cli/dts/lib.deno.window.d.ts')
-rw-r--r-- | cli/dts/lib.deno.window.d.ts | 9 |
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. |