-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathindex.d.ts
More file actions
49 lines (42 loc) · 1.02 KB
/
index.d.ts
File metadata and controls
49 lines (42 loc) · 1.02 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
export type BridgeType =
| { "int": {} }
| { "float": {} }
| { "double": {} }
| { "string": {} }
| { "bool": {} }
| { "jsObject": { "_0": string } | {} }
| { "void": {} }
export type Parameter = {
name: string;
type: BridgeType;
}
export type Effects = {
isAsync: boolean;
}
export type ImportFunctionSkeleton = {
name: string;
parameters: Parameter[];
returnType: BridgeType;
effects: Effects;
documentation: string | undefined;
}
export type ImportConstructorSkeleton = {
parameters: Parameter[];
}
export type ImportPropertySkeleton = {
name: string;
type: BridgeType;
isReadonly: boolean;
documentation: string | undefined;
}
export type ImportTypeSkeleton = {
name: string;
documentation: string | undefined;
constructor?: ImportConstructorSkeleton;
properties: ImportPropertySkeleton[];
methods: ImportFunctionSkeleton[];
}
export type ImportSkeleton = {
functions: ImportFunctionSkeleton[];
types: ImportTypeSkeleton[];
}