-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparsing_tl.d.ts
56 lines (56 loc) · 1.58 KB
/
parsing_tl.d.ts
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
// tslint:disable:class-name
// tslint:disable:interface-name
export const TD_API: TD_API = {
functions: __functions,
constructors: __constructors,
classes: __classes as any,
};
export namespace TD_API {
export type ParameterType = constructorParamType | classParamType | vectorParamType;
export interface constructorTypeFunction {
"@type": "constructorTypeFunction";
name: string;
parameters: parameter[];
type_mode: "Function";
returns: string;
description?: string;
}
export interface parameter {
"@type": "parameter";
name: string;
type: ParameterType;
description?: string;
}
export interface constructorParamType {
"@type": "constructorParamType";
constructorName: string;
}
export interface classParamType {
"@type": "classParamType";
className: string;
}
export interface vectorParamType {
"@type": "vectorParamType";
of_type: ParameterType;
}
export interface constructorTypeObject {
"@type": "constructorTypeObject";
name: string;
type_mode: "Constructor";
parameters: parameter[];
constructs: string;
description?: string;
}
export interface classType {
"@type": "classType";
name: string;
constructors: string[];
functions: string[];
description?: string;
}
}
export interface TD_API {
functions: TD_API.constructorTypeFunction[];
constructors: TD_API.constructorTypeObject[];
classes: TD_API.classType[];
}