forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnumCaseImport.d.ts
More file actions
33 lines (30 loc) · 909 Bytes
/
Copy pathEnumCaseImport.d.ts
File metadata and controls
33 lines (30 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// NOTICE: This is auto-generated code by BridgeJS from JavaScriptKit,
// DO NOT EDIT.
//
// To update this file, just rebuild your project or run
// `swift package bridge-js`.
export const SignalValues: {
readonly Start: 0;
readonly Stop: 1;
};
export type SignalTag = typeof SignalValues[keyof typeof SignalValues];
export type SignalObject = typeof SignalValues;
export interface SignalControls {
send(signal: SignalTag): void;
current(): SignalTag;
}
export type Exports = {
Signal: SignalObject
}
export type Imports = {
SignalControls: {
roundTrip(signal: SignalTag): SignalTag;
}
}
export function createInstantiator(options: {
imports: Imports;
}, swift: any): Promise<{
addImports: (importObject: WebAssembly.Imports) => void;
setInstance: (instance: WebAssembly.Instance) => void;
createExports: (instance: WebAssembly.Instance) => Exports;
}>;