@@ -202,7 +202,7 @@ interface BigInt64Array {
202
202
* @param thisArg An object to which the this keyword can refer in the predicate function.
203
203
* If thisArg is omitted, undefined is used as the this value.
204
204
*/
205
- filter ( predicate : ( value : bigint , index : number , array : BigInt64Array ) => any , thisArg ?: any ) : BigInt64Array ;
205
+ filter < T > ( predicate : ( this : T , value : bigint , index : number , array : BigInt64Array ) => any , thisArg ?: T ) : BigInt64Array ;
206
206
207
207
/**
208
208
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -213,7 +213,7 @@ interface BigInt64Array {
213
213
* @param thisArg If provided, it will be used as the this value for each invocation of
214
214
* predicate. If it is not provided, undefined is used instead.
215
215
*/
216
- find ( predicate : ( value : bigint , index : number , array : BigInt64Array ) => boolean , thisArg ?: any ) : bigint | undefined ;
216
+ find < T > ( predicate : ( this : T , value : bigint , index : number , array : BigInt64Array ) => boolean , thisArg ?: T ) : bigint | undefined ;
217
217
218
218
/**
219
219
* Returns the index of the first element in the array where predicate is true, and -1
@@ -224,7 +224,7 @@ interface BigInt64Array {
224
224
* @param thisArg If provided, it will be used as the this value for each invocation of
225
225
* predicate. If it is not provided, undefined is used instead.
226
226
*/
227
- findIndex ( predicate : ( value : bigint , index : number , array : BigInt64Array ) => boolean , thisArg ?: any ) : number ;
227
+ findIndex < T > ( predicate : ( this : T , value : bigint , index : number , array : BigInt64Array ) => boolean , thisArg ?: T ) : number ;
228
228
229
229
/**
230
230
* Performs the specified action for each element in an array.
@@ -233,7 +233,7 @@ interface BigInt64Array {
233
233
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
234
234
* If thisArg is omitted, undefined is used as the this value.
235
235
*/
236
- forEach ( callbackfn : ( value : bigint , index : number , array : BigInt64Array ) => void , thisArg ?: any ) : void ;
236
+ forEach < T > ( callbackfn : ( this : T , value : bigint , index : number , array : BigInt64Array ) => void , thisArg ?: T ) : void ;
237
237
238
238
/**
239
239
* Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -279,7 +279,7 @@ interface BigInt64Array {
279
279
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
280
280
* If thisArg is omitted, undefined is used as the this value.
281
281
*/
282
- map ( callbackfn : ( value : bigint , index : number , array : BigInt64Array ) => bigint , thisArg ?: any ) : BigInt64Array ;
282
+ map < T > ( callbackfn : ( this : T , value : bigint , index : number , array : BigInt64Array ) => bigint , thisArg ?: T ) : BigInt64Array ;
283
283
284
284
/**
285
285
* Calls the specified callback function for all the elements in an array. The return value of
@@ -411,7 +411,7 @@ interface BigInt64ArrayConstructor {
411
411
* @param thisArg Value of 'this' used to invoke the mapfn.
412
412
*/
413
413
from ( arrayLike : ArrayLike < bigint > ) : BigInt64Array ;
414
- from < U > ( arrayLike : ArrayLike < U > , mapfn : ( v : U , k : number ) => bigint , thisArg ?: any ) : BigInt64Array ;
414
+ from < U , T = undefined > ( arrayLike : ArrayLike < U > , mapfn : ( this : T , v : U , k : number ) => bigint , thisArg ?: T ) : BigInt64Array ;
415
415
}
416
416
417
417
declare var BigInt64Array : BigInt64ArrayConstructor ;
@@ -474,7 +474,7 @@ interface BigUint64Array {
474
474
* @param thisArg An object to which the this keyword can refer in the predicate function.
475
475
* If thisArg is omitted, undefined is used as the this value.
476
476
*/
477
- filter ( predicate : ( value : bigint , index : number , array : BigUint64Array ) => any , thisArg ?: any ) : BigUint64Array ;
477
+ filter < T > ( predicate : ( this : T , value : bigint , index : number , array : BigUint64Array ) => any , thisArg ?: T ) : BigUint64Array ;
478
478
479
479
/**
480
480
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -485,7 +485,7 @@ interface BigUint64Array {
485
485
* @param thisArg If provided, it will be used as the this value for each invocation of
486
486
* predicate. If it is not provided, undefined is used instead.
487
487
*/
488
- find ( predicate : ( value : bigint , index : number , array : BigUint64Array ) => boolean , thisArg ?: any ) : bigint | undefined ;
488
+ find < T > ( predicate : ( this : T , value : bigint , index : number , array : BigUint64Array ) => boolean , thisArg ?: T ) : bigint | undefined ;
489
489
490
490
/**
491
491
* Returns the index of the first element in the array where predicate is true, and -1
@@ -496,7 +496,7 @@ interface BigUint64Array {
496
496
* @param thisArg If provided, it will be used as the this value for each invocation of
497
497
* predicate. If it is not provided, undefined is used instead.
498
498
*/
499
- findIndex ( predicate : ( value : bigint , index : number , array : BigUint64Array ) => boolean , thisArg ?: any ) : number ;
499
+ findIndex < T > ( predicate : ( this : T , value : bigint , index : number , array : BigUint64Array ) => boolean , thisArg ?: T ) : number ;
500
500
501
501
/**
502
502
* Performs the specified action for each element in an array.
@@ -505,7 +505,7 @@ interface BigUint64Array {
505
505
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
506
506
* If thisArg is omitted, undefined is used as the this value.
507
507
*/
508
- forEach ( callbackfn : ( value : bigint , index : number , array : BigUint64Array ) => void , thisArg ?: any ) : void ;
508
+ forEach < T > ( callbackfn : ( this : T , value : bigint , index : number , array : BigUint64Array ) => void , thisArg ?: T ) : void ;
509
509
510
510
/**
511
511
* Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -551,7 +551,7 @@ interface BigUint64Array {
551
551
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
552
552
* If thisArg is omitted, undefined is used as the this value.
553
553
*/
554
- map ( callbackfn : ( value : bigint , index : number , array : BigUint64Array ) => bigint , thisArg ?: any ) : BigUint64Array ;
554
+ map < T > ( callbackfn : ( this : T , value : bigint , index : number , array : BigUint64Array ) => bigint , thisArg ?: T ) : BigUint64Array ;
555
555
556
556
/**
557
557
* Calls the specified callback function for all the elements in an array. The return value of
@@ -683,7 +683,7 @@ interface BigUint64ArrayConstructor {
683
683
* @param thisArg Value of 'this' used to invoke the mapfn.
684
684
*/
685
685
from ( arrayLike : ArrayLike < bigint > ) : BigUint64Array ;
686
- from < U > ( arrayLike : ArrayLike < U > , mapfn : ( v : U , k : number ) => bigint , thisArg ?: any ) : BigUint64Array ;
686
+ from < U , T = undefined > ( arrayLike : ArrayLike < U > , mapfn : ( this : T , v : U , k : number ) => bigint , thisArg ?: T ) : BigUint64Array ;
687
687
}
688
688
689
689
declare var BigUint64Array : BigUint64ArrayConstructor ;
0 commit comments