@@ -19,3 +19,63 @@ declare class Math {
1919 static random ( ) : number ;
2020 static abs ( value : number ) : number ;
2121}
22+
23+ interface Array < T = any > {
24+ // push(member: number): number;
25+ }
26+
27+ declare type Int8Array = Array < int8 > ;
28+ declare type Uint8Array = Array < uint8 > ;
29+
30+ interface Int8ArrayConstructor {
31+ new ( length : number ) : Int8Array ;
32+ }
33+
34+ interface Uint8ArrayConstructor {
35+ new ( length : number ) : Uint8Array ;
36+ }
37+
38+ declare const Int8Array : Int8ArrayConstructor ;
39+ declare const Uint8Array : Uint8ArrayConstructor ;
40+
41+ declare type Int16Array = Array < int16 > ;
42+ declare type Uint16Array = Array < uint16 > ;
43+
44+ interface Int16ArrayConstructor {
45+ new ( length : number ) : Int16Array ;
46+ }
47+
48+ interface Uint16ArrayConstructor {
49+ new ( length : number ) : Uint16Array ;
50+ }
51+
52+ declare const Int16Array : Int16ArrayConstructor ;
53+ declare const Uint16Array : Uint16ArrayConstructor ;
54+
55+ declare type Int32Array = Array < int32 > ;
56+ declare type Uint32Array = Array < uint32 > ;
57+
58+ interface Int32ArrayConstructor {
59+ new ( length : number ) : Int32Array ;
60+ }
61+
62+ interface Uint32ArrayConstructor {
63+ new ( length : number ) : Uint32Array ;
64+ }
65+
66+ declare const Int32Array : Int32ArrayConstructor ;
67+ declare const Uint32Array : Uint32ArrayConstructor ;
68+
69+ declare type Float32Array = Array < float32 > ;
70+ declare type Float64Array = Array < float64 > ;
71+
72+ interface Float32ArrayConstructor {
73+ new ( length : number ) : Float32Array ;
74+ }
75+
76+ interface Float64ArrayConstructor {
77+ new ( length : number ) : Float64Array ;
78+ }
79+
80+ declare const Float32Array : Float32ArrayConstructor ;
81+ declare const Float64Array : Float64ArrayConstructor ;
0 commit comments