@@ -28,33 +28,16 @@ Index: es2015.iterable.d.ts
28
28
}
29
29
30
30
interface Array<T> {
31
- @@ -58,23 +57,23 @@
32
- }
33
-
34
- interface ArrayConstructor {
35
- /**
36
- - * Creates an array from an iterable object.
37
- - * @param iterable An iterable object to convert to an array.
38
- + * Creates an array from an array-like or iterable object.
39
- + * @param source An array-like or iterable object to convert to an array.
40
- */
41
- - from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
42
- + from<T>(source: Iterable<T> | ArrayLike<T>): T[];
43
-
44
- /**
45
- - * Creates an array from an iterable object.
46
- - * @param iterable An iterable object to convert to an array.
47
- + * Creates an array from an array-like or iterable object.
48
- + * @param source An array-like or iterable object to convert to an array.
31
+ @@ -69,12 +68,12 @@
32
+ * @param iterable An iterable object to convert to an array.
49
33
* @param mapfn A mapping function to call on every element of the array.
50
34
* @param thisArg Value of 'this' used to invoke the mapfn.
51
35
*/
52
36
- from<T, U>(
53
- - iterable: Iterable<T> | ArrayLike<T>,
37
+ + from<T, U, This = undefined>(
38
+ iterable: Iterable<T> | ArrayLike<T>,
54
39
- mapfn: (v: T, k: number) => U,
55
40
- thisArg?: any
56
- + from<T, U, This = undefined>(
57
- + source: Iterable<T> | ArrayLike<T>,
58
41
+ mapfn: (this: This, v: T, k: number) => U,
59
42
+ thisArg?: This
60
43
): U[];
@@ -109,14 +92,15 @@ Index: es2015.iterable.d.ts
109
92
new (elements: Iterable<number>): Int8Array;
110
93
-
111
94
/**
112
- * Creates an array from an array-like or iterable object.
95
+ - * Creates an array from an array-like or iterable object.
113
96
- * @param arrayLike An array-like or iterable object to convert to an array.
114
- + * @param source An array-like or iterable object to convert to an array.
97
+ + * Creates an array from an iterable object.
98
+ + * @param iterable An iterable object to convert to an array.
115
99
+ */
116
- + from(source : Iterable<number> | ArrayLike<number>): Int8Array;
100
+ + from(iterable : Iterable<number> | ArrayLike<number>): Int8Array;
117
101
+ /**
118
- + * Creates an array from an array-like or iterable object.
119
- + * @param source An array-like or iterable object to convert to an array.
102
+ + * Creates an array from an iterable object.
103
+ + * @param iterable An iterable object to convert to an array.
120
104
* @param mapfn A mapping function to call on every element of the array.
121
105
* @param thisArg Value of 'this' used to invoke the mapfn.
122
106
*/
@@ -125,7 +109,7 @@ Index: es2015.iterable.d.ts
125
109
- mapfn?: (v: number, k: number) => number,
126
110
- thisArg?: any
127
111
+ from<T, This = undefined>(
128
- + source : Iterable<T> | ArrayLike<T>,
112
+ + iterable : Iterable<T> | ArrayLike<T>,
129
113
+ mapfn: (this: This, v: T, k: number) => number,
130
114
+ thisArg?: This
131
115
): Int8Array;
@@ -139,14 +123,15 @@ Index: es2015.iterable.d.ts
139
123
new (elements: Iterable<number>): Uint8Array;
140
124
-
141
125
/**
142
- * Creates an array from an array-like or iterable object.
126
+ - * Creates an array from an array-like or iterable object.
143
127
- * @param arrayLike An array-like or iterable object to convert to an array.
144
- + * @param source An array-like or iterable object to convert to an array.
128
+ + * Creates an array from an iterable object.
129
+ + * @param iterable An iterable object to convert to an array.
145
130
+ */
146
- + from(source : Iterable<number> | ArrayLike<number>): Uint8Array;
131
+ + from(iterable : Iterable<number> | ArrayLike<number>): Uint8Array;
147
132
+ /**
148
- + * Creates an array from an array-like or iterable object.
149
- + * @param source An array-like or iterable object to convert to an array.
133
+ + * Creates an array from an iterable object.
134
+ + * @param iterable An iterable object to convert to an array.
150
135
* @param mapfn A mapping function to call on every element of the array.
151
136
* @param thisArg Value of 'this' used to invoke the mapfn.
152
137
*/
@@ -155,7 +140,7 @@ Index: es2015.iterable.d.ts
155
140
- mapfn?: (v: number, k: number) => number,
156
141
- thisArg?: any
157
142
+ from<T, This = undefined>(
158
- + source : Iterable<T> | ArrayLike<T>,
143
+ + iterable : Iterable<T> | ArrayLike<T>,
159
144
+ mapfn: (this: This, v: T, k: number) => number,
160
145
+ thisArg?: This
161
146
): Uint8Array;
@@ -169,14 +154,15 @@ Index: es2015.iterable.d.ts
169
154
new (elements: Iterable<number>): Uint8ClampedArray;
170
155
-
171
156
/**
172
- * Creates an array from an array-like or iterable object.
157
+ - * Creates an array from an array-like or iterable object.
173
158
- * @param arrayLike An array-like or iterable object to convert to an array.
174
- + * @param source An array-like or iterable object to convert to an array.
159
+ + * Creates an array from an iterable object.
160
+ + * @param iterable An iterable object to convert to an array.
175
161
+ */
176
- + from(source : Iterable<number> | ArrayLike<number>): Uint8ClampedArray;
162
+ + from(iterable : Iterable<number> | ArrayLike<number>): Uint8ClampedArray;
177
163
+ /**
178
- + * Creates an array from an array-like or iterable object.
179
- + * @param source An array-like or iterable object to convert to an array.
164
+ + * Creates an array from an iterable object.
165
+ + * @param iterable An iterable object to convert to an array.
180
166
* @param mapfn A mapping function to call on every element of the array.
181
167
* @param thisArg Value of 'this' used to invoke the mapfn.
182
168
*/
@@ -185,7 +171,7 @@ Index: es2015.iterable.d.ts
185
171
- mapfn?: (v: number, k: number) => number,
186
172
- thisArg?: any
187
173
+ from<T, This = undefined>(
188
- + source : Iterable<T> | ArrayLike<T>,
174
+ + iterable : Iterable<T> | ArrayLike<T>,
189
175
+ mapfn: (this: This, v: T, k: number) => number,
190
176
+ thisArg?: This
191
177
): Uint8ClampedArray;
@@ -199,14 +185,15 @@ Index: es2015.iterable.d.ts
199
185
new (elements: Iterable<number>): Int16Array;
200
186
-
201
187
/**
202
- * Creates an array from an array-like or iterable object.
188
+ - * Creates an array from an array-like or iterable object.
203
189
- * @param arrayLike An array-like or iterable object to convert to an array.
204
- + * @param source An array-like or iterable object to convert to an array.
190
+ + * Creates an array from an iterable object.
191
+ + * @param iterable An iterable object to convert to an array.
205
192
+ */
206
- + from(source : Iterable<number> | ArrayLike<number>): Int16Array;
193
+ + from(iterable : Iterable<number> | ArrayLike<number>): Int16Array;
207
194
+ /**
208
- + * Creates an array from an array-like or iterable object.
209
- + * @param source An array-like or iterable object to convert to an array.
195
+ + * Creates an array from an iterable object.
196
+ + * @param iterable An iterable object to convert to an array.
210
197
* @param mapfn A mapping function to call on every element of the array.
211
198
* @param thisArg Value of 'this' used to invoke the mapfn.
212
199
*/
@@ -215,7 +202,7 @@ Index: es2015.iterable.d.ts
215
202
- mapfn?: (v: number, k: number) => number,
216
203
- thisArg?: any
217
204
+ from<T, This = undefined>(
218
- + source : Iterable<T> | ArrayLike<T>,
205
+ + iterable : Iterable<T> | ArrayLike<T>,
219
206
+ mapfn: (this: This, v: T, k: number) => number,
220
207
+ thisArg?: This
221
208
): Int16Array;
@@ -229,14 +216,15 @@ Index: es2015.iterable.d.ts
229
216
new (elements: Iterable<number>): Uint16Array;
230
217
-
231
218
/**
232
- * Creates an array from an array-like or iterable object.
219
+ - * Creates an array from an array-like or iterable object.
233
220
- * @param arrayLike An array-like or iterable object to convert to an array.
234
- + * @param source An array-like or iterable object to convert to an array.
221
+ + * Creates an array from an iterable object.
222
+ + * @param iterable An iterable object to convert to an array.
235
223
+ */
236
- + from(source : Iterable<number> | ArrayLike<number>): Uint16Array;
224
+ + from(iterable : Iterable<number> | ArrayLike<number>): Uint16Array;
237
225
+ /**
238
- + * Creates an array from an array-like or iterable object.
239
- + * @param source An array-like or iterable object to convert to an array.
226
+ + * Creates an array from an iterable object.
227
+ + * @param iterable An iterable object to convert to an array.
240
228
* @param mapfn A mapping function to call on every element of the array.
241
229
* @param thisArg Value of 'this' used to invoke the mapfn.
242
230
*/
@@ -245,7 +233,7 @@ Index: es2015.iterable.d.ts
245
233
- mapfn?: (v: number, k: number) => number,
246
234
- thisArg?: any
247
235
+ from<T, This = undefined>(
248
- + source : Iterable<T> | ArrayLike<T>,
236
+ + iterable : Iterable<T> | ArrayLike<T>,
249
237
+ mapfn: (this: This, v: T, k: number) => number,
250
238
+ thisArg?: This
251
239
): Uint16Array;
@@ -259,14 +247,15 @@ Index: es2015.iterable.d.ts
259
247
new (elements: Iterable<number>): Int32Array;
260
248
-
261
249
/**
262
- * Creates an array from an array-like or iterable object.
250
+ - * Creates an array from an array-like or iterable object.
263
251
- * @param arrayLike An array-like or iterable object to convert to an array.
264
- + * @param source An array-like or iterable object to convert to an array.
252
+ + * Creates an array from an iterable object.
253
+ + * @param iterable An iterable object to convert to an array.
265
254
+ */
266
- + from(source : Iterable<number> | ArrayLike<number>): Int32Array;
255
+ + from(iterable : Iterable<number> | ArrayLike<number>): Int32Array;
267
256
+ /**
268
- + * Creates an array from an array-like or iterable object.
269
- + * @param source An array-like or iterable object to convert to an array.
257
+ + * Creates an array from an iterable object.
258
+ + * @param iterable An iterable object to convert to an array.
270
259
* @param mapfn A mapping function to call on every element of the array.
271
260
* @param thisArg Value of 'this' used to invoke the mapfn.
272
261
*/
@@ -275,7 +264,7 @@ Index: es2015.iterable.d.ts
275
264
- mapfn?: (v: number, k: number) => number,
276
265
- thisArg?: any
277
266
+ from<T, This = undefined>(
278
- + source : Iterable<T> | ArrayLike<T>,
267
+ + iterable : Iterable<T> | ArrayLike<T>,
279
268
+ mapfn: (this: This, v: T, k: number) => number,
280
269
+ thisArg?: This
281
270
): Int32Array;
@@ -289,14 +278,15 @@ Index: es2015.iterable.d.ts
289
278
new (elements: Iterable<number>): Uint32Array;
290
279
-
291
280
/**
292
- * Creates an array from an array-like or iterable object.
281
+ - * Creates an array from an array-like or iterable object.
293
282
- * @param arrayLike An array-like or iterable object to convert to an array.
294
- + * @param source An array-like or iterable object to convert to an array.
283
+ + * Creates an array from an iterable object.
284
+ + * @param iterable An iterable object to convert to an array.
295
285
+ */
296
- + from(source : Iterable<number> | ArrayLike<number>): Uint32Array;
286
+ + from(iterable : Iterable<number> | ArrayLike<number>): Uint32Array;
297
287
+ /**
298
- + * Creates an array from an array-like or iterable object.
299
- + * @param source An array-like or iterable object to convert to an array.
288
+ + * Creates an array from an iterable object.
289
+ + * @param iterable An iterable object to convert to an array.
300
290
* @param mapfn A mapping function to call on every element of the array.
301
291
* @param thisArg Value of 'this' used to invoke the mapfn.
302
292
*/
@@ -305,7 +295,7 @@ Index: es2015.iterable.d.ts
305
295
- mapfn?: (v: number, k: number) => number,
306
296
- thisArg?: any
307
297
+ from<T, This = undefined>(
308
- + source : Iterable<T> | ArrayLike<T>,
298
+ + iterable : Iterable<T> | ArrayLike<T>,
309
299
+ mapfn: (this: This, v: T, k: number) => number,
310
300
+ thisArg?: This
311
301
): Uint32Array;
@@ -319,14 +309,15 @@ Index: es2015.iterable.d.ts
319
309
new (elements: Iterable<number>): Float32Array;
320
310
-
321
311
/**
322
- * Creates an array from an array-like or iterable object.
312
+ - * Creates an array from an array-like or iterable object.
323
313
- * @param arrayLike An array-like or iterable object to convert to an array.
324
- + * @param source An array-like or iterable object to convert to an array.
314
+ + * Creates an array from an iterable object.
315
+ + * @param iterable An iterable object to convert to an array.
325
316
+ */
326
- + from(source : Iterable<number> | ArrayLike<number>): Float32Array;
317
+ + from(iterable : Iterable<number> | ArrayLike<number>): Float32Array;
327
318
+ /**
328
- + * Creates an array from an array-like or iterable object.
329
- + * @param source An array-like or iterable object to convert to an array.
319
+ + * Creates an array from an iterable object.
320
+ + * @param iterable An iterable object to convert to an array.
330
321
* @param mapfn A mapping function to call on every element of the array.
331
322
* @param thisArg Value of 'this' used to invoke the mapfn.
332
323
*/
@@ -335,7 +326,7 @@ Index: es2015.iterable.d.ts
335
326
- mapfn?: (v: number, k: number) => number,
336
327
- thisArg?: any
337
328
+ from<T, This = undefined>(
338
- + source : Iterable<T> | ArrayLike<T>,
329
+ + iterable : Iterable<T> | ArrayLike<T>,
339
330
+ mapfn: (this: This, v: T, k: number) => number,
340
331
+ thisArg?: This
341
332
): Float32Array;
@@ -349,14 +340,15 @@ Index: es2015.iterable.d.ts
349
340
new (elements: Iterable<number>): Float64Array;
350
341
-
351
342
/**
352
- * Creates an array from an array-like or iterable object.
343
+ - * Creates an array from an array-like or iterable object.
353
344
- * @param arrayLike An array-like or iterable object to convert to an array.
354
- + * @param source An array-like or iterable object to convert to an array.
345
+ + * Creates an array from an iterable object.
346
+ + * @param iterable An iterable object to convert to an array.
355
347
+ */
356
- + from(source : Iterable<number> | ArrayLike<number>): Float64Array;
348
+ + from(iterable : Iterable<number> | ArrayLike<number>): Float64Array;
357
349
+ /**
358
- + * Creates an array from an array-like or iterable object.
359
- + * @param source An array-like or iterable object to convert to an array.
350
+ + * Creates an array from an iterable object.
351
+ + * @param iterable An iterable object to convert to an array.
360
352
* @param mapfn A mapping function to call on every element of the array.
361
353
* @param thisArg Value of 'this' used to invoke the mapfn.
362
354
*/
@@ -365,7 +357,7 @@ Index: es2015.iterable.d.ts
365
357
- mapfn?: (v: number, k: number) => number,
366
358
- thisArg?: any
367
359
+ from<T, This = undefined>(
368
- + source : Iterable<T> | ArrayLike<T>,
360
+ + iterable : Iterable<T> | ArrayLike<T>,
369
361
+ mapfn: (this: This, v: T, k: number) => number,
370
362
+ thisArg?: This
371
363
): Float64Array;
0 commit comments