tsrc 2.1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/Gemfile +7 -0
- data/LICENSE +55 -0
- data/README.md +33 -0
- data/Rakefile +16 -0
- data/lib/tsrc.rb +57 -0
- data/lib/tsrc/support/typescript/.mailmap +216 -0
- data/lib/tsrc/support/typescript/.npmignore +19 -0
- data/lib/tsrc/support/typescript/AUTHORS.md +204 -0
- data/lib/tsrc/support/typescript/CONTRIBUTING.md +185 -0
- data/lib/tsrc/support/typescript/CopyrightNotice.txt +15 -0
- data/lib/tsrc/support/typescript/LICENSE.txt +55 -0
- data/lib/tsrc/support/typescript/README.md +98 -0
- data/lib/tsrc/support/typescript/ThirdPartyNoticeText.txt +35 -0
- data/lib/tsrc/support/typescript/bin/tsc +2 -0
- data/lib/tsrc/support/typescript/bin/tsserver +2 -0
- data/lib/tsrc/support/typescript/lib/README.md +5 -0
- data/lib/tsrc/support/typescript/lib/cancellationToken.js +41 -0
- data/lib/tsrc/support/typescript/lib/lib.d.ts +18215 -0
- data/lib/tsrc/support/typescript/lib/lib.dom.d.ts +13738 -0
- data/lib/tsrc/support/typescript/lib/lib.dom.iterable.d.ts +33 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.collection.d.ts +92 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.core.d.ts +544 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.d.ts +30 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.generator.d.ts +32 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.iterable.d.ts +465 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.promise.d.ts +274 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.proxy.d.ts +42 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.reflect.d.ts +35 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.symbol.d.ts +56 -0
- data/lib/tsrc/support/typescript/lib/lib.es2015.symbol.wellknown.d.ts +347 -0
- data/lib/tsrc/support/typescript/lib/lib.es2016.array.include.d.ts +118 -0
- data/lib/tsrc/support/typescript/lib/lib.es2016.d.ts +22 -0
- data/lib/tsrc/support/typescript/lib/lib.es2017.d.ts +24 -0
- data/lib/tsrc/support/typescript/lib/lib.es2017.object.d.ts +45 -0
- data/lib/tsrc/support/typescript/lib/lib.es2017.sharedmemory.d.ts +47 -0
- data/lib/tsrc/support/typescript/lib/lib.es2017.string.d.ts +47 -0
- data/lib/tsrc/support/typescript/lib/lib.es5.d.ts +4195 -0
- data/lib/tsrc/support/typescript/lib/lib.es6.d.ts +19950 -0
- data/lib/tsrc/support/typescript/lib/lib.scripthost.d.ts +311 -0
- data/lib/tsrc/support/typescript/lib/lib.webworker.d.ts +1274 -0
- data/lib/tsrc/support/typescript/lib/protocol.d.ts +1900 -0
- data/lib/tsrc/support/typescript/lib/tsc.js +52470 -0
- data/lib/tsrc/support/typescript/lib/tsserver.js +70720 -0
- data/lib/tsrc/support/typescript/lib/tsserverlibrary.d.ts +11939 -0
- data/lib/tsrc/support/typescript/lib/tsserverlibrary.js +70256 -0
- data/lib/tsrc/support/typescript/lib/typescript.d.ts +3166 -0
- data/lib/tsrc/support/typescript/lib/typescript.js +81536 -0
- data/lib/tsrc/support/typescript/lib/typescriptServices.d.ts +3164 -0
- data/lib/tsrc/support/typescript/lib/typescriptServices.js +81536 -0
- data/lib/tsrc/support/typescript/lib/typingsInstaller.js +7314 -0
- data/lib/tsrc/support/typescript/package.json +129 -0
- data/lib/tsrc/support/typescript/test.config +1 -0
- data/lib/tsrc/version.rb +5 -0
- data/tsrc.gemspec +20 -0
- metadata +113 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
/// <reference no-default-lib="true"/>
|
19
|
+
|
20
|
+
|
21
|
+
/// <reference path="lib.es2015.core.d.ts" />
|
22
|
+
/// <reference path="lib.es2015.collection.d.ts" />
|
23
|
+
/// <reference path="lib.es2015.generator.d.ts" />
|
24
|
+
/// <reference path="lib.es2015.iterable.d.ts" />
|
25
|
+
/// <reference path="lib.es2015.promise.d.ts" />
|
26
|
+
/// <reference path="lib.es2015.proxy.d.ts" />
|
27
|
+
/// <reference path="lib.es2015.reflect.d.ts" />
|
28
|
+
/// <reference path="lib.es2015.symbol.d.ts" />
|
29
|
+
/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
|
30
|
+
/// <reference path="lib.es5.d.ts" />
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
/// <reference no-default-lib="true"/>
|
19
|
+
|
20
|
+
|
21
|
+
interface GeneratorFunction extends Function { }
|
22
|
+
|
23
|
+
interface GeneratorFunctionConstructor {
|
24
|
+
/**
|
25
|
+
* Creates a new Generator function.
|
26
|
+
* @param args A list of arguments the function accepts.
|
27
|
+
*/
|
28
|
+
new (...args: string[]): GeneratorFunction;
|
29
|
+
(...args: string[]): GeneratorFunction;
|
30
|
+
readonly prototype: GeneratorFunction;
|
31
|
+
}
|
32
|
+
declare var GeneratorFunction: GeneratorFunctionConstructor;
|
@@ -0,0 +1,465 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
/// <reference no-default-lib="true"/>
|
19
|
+
|
20
|
+
|
21
|
+
/// <reference path="lib.es2015.symbol.d.ts" />
|
22
|
+
|
23
|
+
interface SymbolConstructor {
|
24
|
+
/**
|
25
|
+
* A method that returns the default iterator for an object. Called by the semantics of the
|
26
|
+
* for-of statement.
|
27
|
+
*/
|
28
|
+
readonly iterator: symbol;
|
29
|
+
}
|
30
|
+
|
31
|
+
interface IteratorResult<T> {
|
32
|
+
done: boolean;
|
33
|
+
value: T;
|
34
|
+
}
|
35
|
+
|
36
|
+
interface Iterator<T> {
|
37
|
+
next(value?: any): IteratorResult<T>;
|
38
|
+
return?(value?: any): IteratorResult<T>;
|
39
|
+
throw?(e?: any): IteratorResult<T>;
|
40
|
+
}
|
41
|
+
|
42
|
+
interface Iterable<T> {
|
43
|
+
[Symbol.iterator](): Iterator<T>;
|
44
|
+
}
|
45
|
+
|
46
|
+
interface IterableIterator<T> extends Iterator<T> {
|
47
|
+
[Symbol.iterator](): IterableIterator<T>;
|
48
|
+
}
|
49
|
+
|
50
|
+
interface Array<T> {
|
51
|
+
/** Iterator */
|
52
|
+
[Symbol.iterator](): IterableIterator<T>;
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Returns an array of key, value pairs for every entry in the array
|
56
|
+
*/
|
57
|
+
entries(): IterableIterator<[number, T]>;
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Returns an list of keys in the array
|
61
|
+
*/
|
62
|
+
keys(): IterableIterator<number>;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Returns an list of values in the array
|
66
|
+
*/
|
67
|
+
values(): IterableIterator<T>;
|
68
|
+
}
|
69
|
+
|
70
|
+
interface ArrayConstructor {
|
71
|
+
/**
|
72
|
+
* Creates an array from an iterable object.
|
73
|
+
* @param iterable An iterable object to convert to an array.
|
74
|
+
* @param mapfn A mapping function to call on every element of the array.
|
75
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
76
|
+
*/
|
77
|
+
from<T, U>(iterable: Iterable<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Creates an array from an iterable object.
|
81
|
+
* @param iterable An iterable object to convert to an array.
|
82
|
+
*/
|
83
|
+
from<T>(iterable: Iterable<T>): Array<T>;
|
84
|
+
}
|
85
|
+
|
86
|
+
interface ReadonlyArray<T> {
|
87
|
+
/** Iterator */
|
88
|
+
[Symbol.iterator](): IterableIterator<T>;
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Returns an array of key, value pairs for every entry in the array
|
92
|
+
*/
|
93
|
+
entries(): IterableIterator<[number, T]>;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Returns an list of keys in the array
|
97
|
+
*/
|
98
|
+
keys(): IterableIterator<number>;
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Returns an list of values in the array
|
102
|
+
*/
|
103
|
+
values(): IterableIterator<T>;
|
104
|
+
}
|
105
|
+
|
106
|
+
interface IArguments {
|
107
|
+
/** Iterator */
|
108
|
+
[Symbol.iterator](): IterableIterator<any>;
|
109
|
+
}
|
110
|
+
|
111
|
+
interface Map<K, V> {
|
112
|
+
[Symbol.iterator](): IterableIterator<[K,V]>;
|
113
|
+
entries(): IterableIterator<[K, V]>;
|
114
|
+
keys(): IterableIterator<K>;
|
115
|
+
values(): IterableIterator<V>;
|
116
|
+
}
|
117
|
+
|
118
|
+
interface MapConstructor {
|
119
|
+
new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
|
120
|
+
}
|
121
|
+
|
122
|
+
interface WeakMap<K, V> { }
|
123
|
+
|
124
|
+
interface WeakMapConstructor {
|
125
|
+
new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
|
126
|
+
}
|
127
|
+
|
128
|
+
interface Set<T> {
|
129
|
+
[Symbol.iterator](): IterableIterator<T>;
|
130
|
+
entries(): IterableIterator<[T, T]>;
|
131
|
+
keys(): IterableIterator<T>;
|
132
|
+
values(): IterableIterator<T>;
|
133
|
+
}
|
134
|
+
|
135
|
+
interface SetConstructor {
|
136
|
+
new <T>(iterable: Iterable<T>): Set<T>;
|
137
|
+
}
|
138
|
+
|
139
|
+
interface WeakSet<T> { }
|
140
|
+
|
141
|
+
interface WeakSetConstructor {
|
142
|
+
new <T>(iterable: Iterable<T>): WeakSet<T>;
|
143
|
+
}
|
144
|
+
|
145
|
+
interface Promise<T> { }
|
146
|
+
|
147
|
+
interface PromiseConstructor {
|
148
|
+
/**
|
149
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
150
|
+
* resolve, or rejected when any Promise is rejected.
|
151
|
+
* @param values An array of Promises.
|
152
|
+
* @returns A new Promise.
|
153
|
+
*/
|
154
|
+
all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
158
|
+
* or rejected.
|
159
|
+
* @param values An array of Promises.
|
160
|
+
* @returns A new Promise.
|
161
|
+
*/
|
162
|
+
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
|
163
|
+
}
|
164
|
+
|
165
|
+
declare namespace Reflect {
|
166
|
+
function enumerate(target: any): IterableIterator<any>;
|
167
|
+
}
|
168
|
+
|
169
|
+
interface String {
|
170
|
+
/** Iterator */
|
171
|
+
[Symbol.iterator](): IterableIterator<string>;
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
176
|
+
* number of bytes could not be allocated an exception is raised.
|
177
|
+
*/
|
178
|
+
interface Int8Array {
|
179
|
+
[Symbol.iterator](): IterableIterator<number>;
|
180
|
+
/**
|
181
|
+
* Returns an array of key, value pairs for every entry in the array
|
182
|
+
*/
|
183
|
+
entries(): IterableIterator<[number, number]>;
|
184
|
+
/**
|
185
|
+
* Returns an list of keys in the array
|
186
|
+
*/
|
187
|
+
keys(): IterableIterator<number>;
|
188
|
+
/**
|
189
|
+
* Returns an list of values in the array
|
190
|
+
*/
|
191
|
+
values(): IterableIterator<number>;
|
192
|
+
}
|
193
|
+
|
194
|
+
interface Int8ArrayConstructor {
|
195
|
+
new (elements: Iterable<number>): Int8Array;
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Creates an array from an array-like or iterable object.
|
199
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
200
|
+
* @param mapfn A mapping function to call on every element of the array.
|
201
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
202
|
+
*/
|
203
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
208
|
+
* requested number of bytes could not be allocated an exception is raised.
|
209
|
+
*/
|
210
|
+
interface Uint8Array {
|
211
|
+
[Symbol.iterator](): IterableIterator<number>;
|
212
|
+
/**
|
213
|
+
* Returns an array of key, value pairs for every entry in the array
|
214
|
+
*/
|
215
|
+
entries(): IterableIterator<[number, number]>;
|
216
|
+
/**
|
217
|
+
* Returns an list of keys in the array
|
218
|
+
*/
|
219
|
+
keys(): IterableIterator<number>;
|
220
|
+
/**
|
221
|
+
* Returns an list of values in the array
|
222
|
+
*/
|
223
|
+
values(): IterableIterator<number>;
|
224
|
+
}
|
225
|
+
|
226
|
+
interface Uint8ArrayConstructor {
|
227
|
+
new (elements: Iterable<number>): Uint8Array;
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Creates an array from an array-like or iterable object.
|
231
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
232
|
+
* @param mapfn A mapping function to call on every element of the array.
|
233
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
234
|
+
*/
|
235
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
|
236
|
+
}
|
237
|
+
|
238
|
+
/**
|
239
|
+
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
|
240
|
+
* If the requested number of bytes could not be allocated an exception is raised.
|
241
|
+
*/
|
242
|
+
interface Uint8ClampedArray {
|
243
|
+
[Symbol.iterator](): IterableIterator<number>;
|
244
|
+
/**
|
245
|
+
* Returns an array of key, value pairs for every entry in the array
|
246
|
+
*/
|
247
|
+
entries(): IterableIterator<[number, number]>;
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Returns an list of keys in the array
|
251
|
+
*/
|
252
|
+
keys(): IterableIterator<number>;
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Returns an list of values in the array
|
256
|
+
*/
|
257
|
+
values(): IterableIterator<number>;
|
258
|
+
}
|
259
|
+
|
260
|
+
interface Uint8ClampedArrayConstructor {
|
261
|
+
new (elements: Iterable<number>): Uint8ClampedArray;
|
262
|
+
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Creates an array from an array-like or iterable object.
|
266
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
267
|
+
* @param mapfn A mapping function to call on every element of the array.
|
268
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
269
|
+
*/
|
270
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
271
|
+
}
|
272
|
+
|
273
|
+
/**
|
274
|
+
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
275
|
+
* requested number of bytes could not be allocated an exception is raised.
|
276
|
+
*/
|
277
|
+
interface Int16Array {
|
278
|
+
[Symbol.iterator](): IterableIterator<number>;
|
279
|
+
/**
|
280
|
+
* Returns an array of key, value pairs for every entry in the array
|
281
|
+
*/
|
282
|
+
entries(): IterableIterator<[number, number]>;
|
283
|
+
|
284
|
+
/**
|
285
|
+
* Returns an list of keys in the array
|
286
|
+
*/
|
287
|
+
keys(): IterableIterator<number>;
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Returns an list of values in the array
|
291
|
+
*/
|
292
|
+
values(): IterableIterator<number>;
|
293
|
+
}
|
294
|
+
|
295
|
+
interface Int16ArrayConstructor {
|
296
|
+
new (elements: Iterable<number>): Int16Array;
|
297
|
+
|
298
|
+
/**
|
299
|
+
* Creates an array from an array-like or iterable object.
|
300
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
301
|
+
* @param mapfn A mapping function to call on every element of the array.
|
302
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
303
|
+
*/
|
304
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
|
305
|
+
}
|
306
|
+
|
307
|
+
/**
|
308
|
+
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
309
|
+
* requested number of bytes could not be allocated an exception is raised.
|
310
|
+
*/
|
311
|
+
interface Uint16Array {
|
312
|
+
[Symbol.iterator](): IterableIterator<number>;
|
313
|
+
/**
|
314
|
+
* Returns an array of key, value pairs for every entry in the array
|
315
|
+
*/
|
316
|
+
entries(): IterableIterator<[number, number]>;
|
317
|
+
/**
|
318
|
+
* Returns an list of keys in the array
|
319
|
+
*/
|
320
|
+
keys(): IterableIterator<number>;
|
321
|
+
/**
|
322
|
+
* Returns an list of values in the array
|
323
|
+
*/
|
324
|
+
values(): IterableIterator<number>;
|
325
|
+
}
|
326
|
+
|
327
|
+
interface Uint16ArrayConstructor {
|
328
|
+
new (elements: Iterable<number>): Uint16Array;
|
329
|
+
|
330
|
+
/**
|
331
|
+
* Creates an array from an array-like or iterable object.
|
332
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
333
|
+
* @param mapfn A mapping function to call on every element of the array.
|
334
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
335
|
+
*/
|
336
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
|
337
|
+
}
|
338
|
+
|
339
|
+
/**
|
340
|
+
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
341
|
+
* requested number of bytes could not be allocated an exception is raised.
|
342
|
+
*/
|
343
|
+
interface Int32Array {
|
344
|
+
[Symbol.iterator](): IterableIterator<number>;
|
345
|
+
/**
|
346
|
+
* Returns an array of key, value pairs for every entry in the array
|
347
|
+
*/
|
348
|
+
entries(): IterableIterator<[number, number]>;
|
349
|
+
/**
|
350
|
+
* Returns an list of keys in the array
|
351
|
+
*/
|
352
|
+
keys(): IterableIterator<number>;
|
353
|
+
/**
|
354
|
+
* Returns an list of values in the array
|
355
|
+
*/
|
356
|
+
values(): IterableIterator<number>;
|
357
|
+
}
|
358
|
+
|
359
|
+
interface Int32ArrayConstructor {
|
360
|
+
new (elements: Iterable<number>): Int32Array;
|
361
|
+
|
362
|
+
/**
|
363
|
+
* Creates an array from an array-like or iterable object.
|
364
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
365
|
+
* @param mapfn A mapping function to call on every element of the array.
|
366
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
367
|
+
*/
|
368
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
|
369
|
+
}
|
370
|
+
|
371
|
+
/**
|
372
|
+
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
373
|
+
* requested number of bytes could not be allocated an exception is raised.
|
374
|
+
*/
|
375
|
+
interface Uint32Array {
|
376
|
+
[Symbol.iterator](): IterableIterator<number>;
|
377
|
+
/**
|
378
|
+
* Returns an array of key, value pairs for every entry in the array
|
379
|
+
*/
|
380
|
+
entries(): IterableIterator<[number, number]>;
|
381
|
+
/**
|
382
|
+
* Returns an list of keys in the array
|
383
|
+
*/
|
384
|
+
keys(): IterableIterator<number>;
|
385
|
+
/**
|
386
|
+
* Returns an list of values in the array
|
387
|
+
*/
|
388
|
+
values(): IterableIterator<number>;
|
389
|
+
}
|
390
|
+
|
391
|
+
interface Uint32ArrayConstructor {
|
392
|
+
new (elements: Iterable<number>): Uint32Array;
|
393
|
+
|
394
|
+
/**
|
395
|
+
* Creates an array from an array-like or iterable object.
|
396
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
397
|
+
* @param mapfn A mapping function to call on every element of the array.
|
398
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
399
|
+
*/
|
400
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
|
401
|
+
}
|
402
|
+
|
403
|
+
/**
|
404
|
+
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
405
|
+
* of bytes could not be allocated an exception is raised.
|
406
|
+
*/
|
407
|
+
interface Float32Array {
|
408
|
+
[Symbol.iterator](): IterableIterator<number>;
|
409
|
+
/**
|
410
|
+
* Returns an array of key, value pairs for every entry in the array
|
411
|
+
*/
|
412
|
+
entries(): IterableIterator<[number, number]>;
|
413
|
+
/**
|
414
|
+
* Returns an list of keys in the array
|
415
|
+
*/
|
416
|
+
keys(): IterableIterator<number>;
|
417
|
+
/**
|
418
|
+
* Returns an list of values in the array
|
419
|
+
*/
|
420
|
+
values(): IterableIterator<number>;
|
421
|
+
}
|
422
|
+
|
423
|
+
interface Float32ArrayConstructor {
|
424
|
+
new (elements: Iterable<number>): Float32Array;
|
425
|
+
|
426
|
+
/**
|
427
|
+
* Creates an array from an array-like or iterable object.
|
428
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
429
|
+
* @param mapfn A mapping function to call on every element of the array.
|
430
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
431
|
+
*/
|
432
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
|
433
|
+
}
|
434
|
+
|
435
|
+
/**
|
436
|
+
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
437
|
+
* number of bytes could not be allocated an exception is raised.
|
438
|
+
*/
|
439
|
+
interface Float64Array {
|
440
|
+
[Symbol.iterator](): IterableIterator<number>;
|
441
|
+
/**
|
442
|
+
* Returns an array of key, value pairs for every entry in the array
|
443
|
+
*/
|
444
|
+
entries(): IterableIterator<[number, number]>;
|
445
|
+
/**
|
446
|
+
* Returns an list of keys in the array
|
447
|
+
*/
|
448
|
+
keys(): IterableIterator<number>;
|
449
|
+
/**
|
450
|
+
* Returns an list of values in the array
|
451
|
+
*/
|
452
|
+
values(): IterableIterator<number>;
|
453
|
+
}
|
454
|
+
|
455
|
+
interface Float64ArrayConstructor {
|
456
|
+
new (elements: Iterable<number>): Float64Array;
|
457
|
+
|
458
|
+
/**
|
459
|
+
* Creates an array from an array-like or iterable object.
|
460
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
461
|
+
* @param mapfn A mapping function to call on every element of the array.
|
462
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
463
|
+
*/
|
464
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
|
465
|
+
}
|