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 5b56aa4 commit 951aca8Copy full SHA for 951aca8
1 file changed
Plugins/PackageToJS/Templates/instantiate.d.ts
@@ -1,4 +1,6 @@
1
-import type { /* #if USE_SHARED_MEMORY */SwiftRuntimeThreadChannel, /* #endif */SwiftRuntime } from "./runtime.js";
+/* #if USE_SHARED_MEMORY */
2
+import type { SwiftRuntimeThreadChannel } from "./runtime.js";
3
+/* #endif */
4
5
/* #if HAS_BRIDGE */
6
export type { Imports, Exports } from "./bridge-js.js";
@@ -50,6 +52,12 @@ export interface WASI {
50
52
extractFile?(path: string): Uint8Array | undefined
51
53
}
54
55
+export type SwiftRuntime = {
56
+ UnsafeEventLoopYield: { [Symbol.hasInstance]: (value: unknown) => boolean }
57
+ main(): void;
58
+ startThread(tid: number, startArg: number): void;
59
+}
60
+
61
export type ModuleSource = WebAssembly.Module | ArrayBufferView | ArrayBuffer | Response | PromiseLike<Response>
62
63
/**
0 commit comments