Browse Source

WebGPU typings update

sebavan 6 năm trước cách đây
mục cha
commit
fbd26ca7f5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/LibDeclarations/webgpu.d.ts

+ 2 - 2
src/LibDeclarations/webgpu.d.ts

@@ -709,11 +709,11 @@ interface GPU {
 
 type GPUErrorFilter = "none" | "out-of-memory" | "validation";
 
-class GPUOutOfMemoryError {
+declare class GPUOutOfMemoryError {
   constructor();
 }
 
-class GPUValidationError {
+declare class GPUValidationError {
   constructor(message: string);
   readonly message: string;
 }