File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Plugins/PackageToJS/Templates Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- import type { /* #if USE_SHARED_MEMORY */ SwiftRuntimeThreadChannel , /* #endif */ SwiftRuntime } from "./runtime.js" ;
1
+ /* #if USE_SHARED_MEMORY */
2
+ import type { SwiftRuntimeThreadChannel } from "./runtime.js" ;
3
+ /* #endif */
2
4
3
5
/* #if HAS_BRIDGE */
4
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
}
52
54
55
+ export type SwiftRuntime = {
56
+ UnsafeEventLoopYield : { [ Symbol . hasInstance ] : ( value : unknown ) => boolean }
57
+ main ( ) : void ;
58
+ startThread ( tid : number , startArg : number ) : void ;
59
+ }
60
+
53
61
export type ModuleSource = WebAssembly . Module | ArrayBufferView | ArrayBuffer | Response | PromiseLike < Response >
54
62
55
63
/**
You can’t perform that action at this time.
0 commit comments