summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorDean Srebnik <49134864+load1n9@users.noreply.github.com>2024-01-24 10:47:28 -0500
committerGitHub <noreply@github.com>2024-01-24 21:17:28 +0530
commit6b5c9764ac8087d035ef6a3f2542bd089957035e (patch)
tree4e8510c18effb55ac15c2577ac8bcfdf5a3c10f2 /cli/tsc
parenta5a973e93c19b95b604adf9862dfafaf4becee04 (diff)
chore: fix `Deno.UnsafeWindowSurface` typings (#22081)
- changed `Deno.UnsafeWindowSurface` typings from accepting `Deno.UnsafePointerView` to `Deno.PointerValue` - added width and height to `GPUCanvasConfiguration`
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts4
-rw-r--r--cli/tsc/dts/lib.deno_webgpu.d.ts2
2 files changed, 4 insertions, 2 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index 80bb4e327..3318552f3 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -783,8 +783,8 @@ declare namespace Deno {
export class UnsafeWindowSurface {
constructor(
system: "cocoa" | "win32" | "x11",
- windowHandle: UnsafePointerView,
- displayHandle: UnsafePointerView | null,
+ windowHandle: Deno.PointerValue<unknown>,
+ displayHandle: Deno.PointerValue<unknown>,
);
getContext(context: "webgpu"): GPUCanvasContext;
present(): void;
diff --git a/cli/tsc/dts/lib.deno_webgpu.d.ts b/cli/tsc/dts/lib.deno_webgpu.d.ts
index 606c77634..50d9ecfb6 100644
--- a/cli/tsc/dts/lib.deno_webgpu.d.ts
+++ b/cli/tsc/dts/lib.deno_webgpu.d.ts
@@ -1325,6 +1325,8 @@ declare interface GPUCanvasConfiguration {
viewFormats?: GPUTextureFormat[];
colorSpace?: "srgb" | "display-p3";
alphaMode?: GPUCanvasAlphaMode;
+ width: number;
+ height: number;
}
/** @category WebGPU */
declare interface GPUCanvasContext {