فهرست منبع

WebGPU typings update

sebavan 6 سال پیش
والد
کامیت
fbd26ca7f5
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;
 }