-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.d.ts
74 lines (65 loc) · 1.28 KB
/
global.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
declare const enum ApiTypes {
CLIENT = 'client',
SERVER = 'server',
SHARED = 'shared',
NATIVE = 'native',
}
declare const enum PrimitiveTypes {
NUMBER = 'number',
VOID = 'void',
VECTOR2 = 'vector2',
VECTOR3 = 'vector3',
VECTOR4 = 'vector4',
QUAT = 'quat',
STRING = 'string',
BOOLEAN = 'boolean',
ANY = 'any',
FUNCTION = 'function',
TABLE = 'table',
}
declare const enum DocTypes {
ARRAY = '[]',
CAM = 'Cam',
ENTITY = 'Entity',
PLAYER = 'Player',
VEHICLE = 'Vehicle',
PED = 'Ped',
OBJECT = 'Object',
PICKUP = 'Pickup',
FIRE_ID = 'FireId',
BLIP = 'Blip',
HASH = 'Hash',
SCR_HANDLE = 'ScrHandle',
FUNCTION = 'fun',
}
declare type FoundName = {
overload: string
paramsLength: number
}
declare type NativeDelcarationParam = {
name: string
type: string
}
declare type NativeDeclarationExample = {
lang: string,
code: string
}
declare type NativeDeclaration = {
results: string
hash: string
params: NativeDelcarationParam[]
description: string
examples: NativeDeclarationExample[]
aliases?: string[]
ns: string
apiset: string
name: string
jhash?: string
manualHash?: boolean
}
declare type GeneratedOverload = [string, string, boolean]
declare type ParsedMethod = {
namespace: string
apiset: string
content: string
}