We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb03aec commit 0caa9f7Copy full SHA for 0caa9f7
types/emscripten/index.d.ts
@@ -26,11 +26,14 @@ declare namespace Emscripten {
26
// Infers the type only in TypeScript environments where GPU types are available
27
type MaybeGPUDevice = Navigator extends {
28
gpu: {
29
- requestAdapter(...args: any[]): Promise<null | {
30
- requestDevice(...args: any[]): Promise<null | infer T>
31
- }>
32
- }
33
-} ? T : never;
+ requestAdapter(...args: any[]): Promise<
+ null | {
+ requestDevice(...args: any[]): Promise<null | infer T>;
+ }
+ >;
34
+ };
35
+} ? T
36
+ : never;
37
38
interface EmscriptenModule {
39
print(str: string): void;
0 commit comments