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 */
24
35/* #if HAS_BRIDGE */
46export type { Imports , Exports } from "./bridge-js.js" ;
@@ -50,6 +52,12 @@ export interface WASI {
5052 extractFile ?( path : string ) : Uint8Array | undefined
5153}
5254
55+ export type SwiftRuntime = {
56+ UnsafeEventLoopYield : { [ Symbol . hasInstance ] : ( value : unknown ) => boolean }
57+ main ( ) : void ;
58+ startThread ( tid : number , startArg : number ) : void ;
59+ }
60+
5361export type ModuleSource = WebAssembly . Module | ArrayBufferView | ArrayBuffer | Response | PromiseLike < Response >
5462
5563/**
You can’t perform that action at this time.
0 commit comments