From 7cd14f97c9300357475e3e461fa57cbb7ec5bfec Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Mon, 1 Mar 2021 11:31:13 +0100 Subject: feat: WebGPU API (#7977) Co-authored-by: Luca Casonato --- cli/dts/lib.deno.window.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) (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 721c89af2..2d46e5fe0 100644 --- a/cli/dts/lib.deno.window.d.ts +++ b/cli/dts/lib.deno.window.d.ts @@ -3,6 +3,7 @@ /// /// /// +/// /// declare class Window extends EventTarget { @@ -17,12 +18,18 @@ declare class Window extends EventTarget { confirm: (message?: string) => boolean; prompt: (message?: string, defaultValue?: string) => string | null; Deno: typeof Deno; + navigator: Navigator; } 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 { + readonly gpu: GPU; +} /** * Shows the given message and waits for the enter key pressed. -- cgit v1.2.3