forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnumAssociatedValue.Export.d.ts
More file actions
75 lines (68 loc) · 2.84 KB
/
EnumAssociatedValue.Export.d.ts
File metadata and controls
75 lines (68 loc) · 2.84 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// 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 APIResult: {
readonly Tag: {
readonly Success: 0;
readonly Failure: 1;
readonly Flag: 2;
readonly Rate: 3;
readonly Precise: 4;
readonly Info: 5;
};
};
export type APIResult =
{ tag: typeof APIResult.Tag.Success; param0: string } | { tag: typeof APIResult.Tag.Failure; param0: number } | { tag: typeof APIResult.Tag.Flag; param0: boolean } | { tag: typeof APIResult.Tag.Rate; param0: number } | { tag: typeof APIResult.Tag.Precise; param0: number } | { tag: typeof APIResult.Tag.Info }
export const ComplexResult: {
readonly Tag: {
readonly Success: 0;
readonly Error: 1;
readonly Status: 2;
readonly Coordinates: 3;
readonly Comprehensive: 4;
readonly Info: 5;
};
};
export type ComplexResult =
{ tag: typeof ComplexResult.Tag.Success; param0: string } | { tag: typeof ComplexResult.Tag.Error; param0: string; param1: number } | { tag: typeof ComplexResult.Tag.Status; param0: boolean; param1: number; param2: string } | { tag: typeof ComplexResult.Tag.Coordinates; param0: number; param1: number; param2: number } | { tag: typeof ComplexResult.Tag.Comprehensive; param0: boolean; param1: boolean; param2: number; param3: number; param4: number; param5: number; param6: string; param7: string; param8: string } | { tag: typeof ComplexResult.Tag.Info }
export {};
declare global {
namespace API {
const NetworkingResult: {
readonly Tag: {
readonly Success: 0;
readonly Failure: 1;
};
};
type NetworkingResult =
{ tag: typeof NetworkingResult.Tag.Success; param0: string } | { tag: typeof NetworkingResult.Tag.Failure; param0: string; param1: number }
}
namespace Utilities {
const Result: {
readonly Tag: {
readonly Success: 0;
readonly Failure: 1;
readonly Status: 2;
};
};
type Result =
{ tag: typeof Result.Tag.Success; param0: string } | { tag: typeof Result.Tag.Failure; param0: string; param1: number } | { tag: typeof Result.Tag.Status; param0: boolean; param1: number; param2: string }
}
}
export type Exports = {
handle(result: APIResult): void;
getResult(): APIResult;
handleComplex(result: ComplexResult): void;
getComplexResult(): ComplexResult;
}
export type Imports = {
}
export function createInstantiator(options: {
imports: Imports;
}, swift: any): Promise<{
addImports: (importObject: WebAssembly.Imports) => void;
setInstance: (instance: WebAssembly.Instance) => void;
createExports: (instance: WebAssembly.Instance) => Exports;
}>;