-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.d.ts
55 lines (46 loc) · 1.18 KB
/
index.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
// typescript
/**
* Unsigned (zero or positive) number.
*/
type uInt8 = number;
/**
* Unsigned (zero or positive) number.
*/
type uInt16 = number;
/**
* Unsigned (zero or positive) number.
*/
type uInt32 = number;
/**
* Maximum value for unsigned 8-bit integer.
* @type {uInt8}
*/
declare var MAX_UINT8: uInt8;
/**
* Maximum value for unsigned 16-bit integer.
* @type {uInt16}
*/
declare var MAX_UINT16: uInt16;
/**
* Maximum value for unsigned 32-bit integer.
* @type {uInt32}
*/
declare var MAX_UINT32: uInt32;
/**
* Converts given `number` to unsigned int8.
* @param {number} number The number to be converted.
* @return {uInt8} The unsigned (zero or positive) number.
*/
export declare function uint8(number: number): uInt8;
/**
* Converts given `number` to unsigned int16.
* @param {number} number The number to be converted.
* @return {uInt16} The unsigned (zero or positive) number.
*/
export declare function uint16(number: number): uInt16;
/**
* Converts given `number` to unsigned int32.
* @param {number} number The number to be converted.
* @return {uInt32} The unsigned (zero or positive) number.
*/
export declare function uint32(number: number): uInt32;