@@ -1139,7 +1139,7 @@ interface Array<T> {
1139
1139
* Sorts an array.
1140
1140
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
1141
1141
*/
1142
- sort ( compareFn ?: ( a : T , b : T ) => number ) : T [ ] ;
1142
+ sort ( compareFn ?: ( a : T , b : T ) => number ) : this ;
1143
1143
/**
1144
1144
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1145
1145
* @param start The zero-based location in the array from which to start removing elements.
@@ -1481,7 +1481,7 @@ interface Int8Array {
1481
1481
* is treated as length+end.
1482
1482
* @param end If not specified, length of the this object is used as its default value.
1483
1483
*/
1484
- copyWithin ( target : number , start : number , end ?: number ) : Int8Array ;
1484
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
1485
1485
1486
1486
/**
1487
1487
* Determines whether all the members of an array satisfy the specified test.
@@ -1501,7 +1501,7 @@ interface Int8Array {
1501
1501
* @param end index to stop filling the array at. If end is negative, it is treated as
1502
1502
* length+end.
1503
1503
*/
1504
- fill ( value : number , start ?: number , end ?: number ) : Int8Array ;
1504
+ fill ( value : number , start ?: number , end ?: number ) : this ;
1505
1505
1506
1506
/**
1507
1507
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -1670,7 +1670,7 @@ interface Int8Array {
1670
1670
* @param compareFn The name of the function used to determine the order of the elements. If
1671
1671
* omitted, the elements are sorted in ascending, ASCII character order.
1672
1672
*/
1673
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Int8Array ;
1673
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
1674
1674
1675
1675
/**
1676
1676
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
@@ -1754,7 +1754,7 @@ interface Uint8Array {
1754
1754
* is treated as length+end.
1755
1755
* @param end If not specified, length of the this object is used as its default value.
1756
1756
*/
1757
- copyWithin ( target : number , start : number , end ?: number ) : Uint8Array ;
1757
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
1758
1758
1759
1759
/**
1760
1760
* Determines whether all the members of an array satisfy the specified test.
@@ -1774,7 +1774,7 @@ interface Uint8Array {
1774
1774
* @param end index to stop filling the array at. If end is negative, it is treated as
1775
1775
* length+end.
1776
1776
*/
1777
- fill ( value : number , start ?: number , end ?: number ) : Uint8Array ;
1777
+ fill ( value : number , start ?: number , end ?: number ) : this ;
1778
1778
1779
1779
/**
1780
1780
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -1943,7 +1943,7 @@ interface Uint8Array {
1943
1943
* @param compareFn The name of the function used to determine the order of the elements. If
1944
1944
* omitted, the elements are sorted in ascending, ASCII character order.
1945
1945
*/
1946
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Uint8Array ;
1946
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
1947
1947
1948
1948
/**
1949
1949
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
@@ -2028,7 +2028,7 @@ interface Uint8ClampedArray {
2028
2028
* is treated as length+end.
2029
2029
* @param end If not specified, length of the this object is used as its default value.
2030
2030
*/
2031
- copyWithin ( target : number , start : number , end ?: number ) : Uint8ClampedArray ;
2031
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
2032
2032
2033
2033
/**
2034
2034
* Determines whether all the members of an array satisfy the specified test.
@@ -2048,7 +2048,7 @@ interface Uint8ClampedArray {
2048
2048
* @param end index to stop filling the array at. If end is negative, it is treated as
2049
2049
* length+end.
2050
2050
*/
2051
- fill ( value : number , start ?: number , end ?: number ) : Uint8ClampedArray ;
2051
+ fill ( value : number , start ?: number , end ?: number ) : this ;
2052
2052
2053
2053
/**
2054
2054
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -2217,7 +2217,7 @@ interface Uint8ClampedArray {
2217
2217
* @param compareFn The name of the function used to determine the order of the elements. If
2218
2218
* omitted, the elements are sorted in ascending, ASCII character order.
2219
2219
*/
2220
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Uint8ClampedArray ;
2220
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
2221
2221
2222
2222
/**
2223
2223
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
@@ -2301,7 +2301,7 @@ interface Int16Array {
2301
2301
* is treated as length+end.
2302
2302
* @param end If not specified, length of the this object is used as its default value.
2303
2303
*/
2304
- copyWithin ( target : number , start : number , end ?: number ) : Int16Array ;
2304
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
2305
2305
2306
2306
/**
2307
2307
* Determines whether all the members of an array satisfy the specified test.
@@ -2321,7 +2321,7 @@ interface Int16Array {
2321
2321
* @param end index to stop filling the array at. If end is negative, it is treated as
2322
2322
* length+end.
2323
2323
*/
2324
- fill ( value : number , start ?: number , end ?: number ) : Int16Array ;
2324
+ fill ( value : number , start ?: number , end ?: number ) : this ;
2325
2325
2326
2326
/**
2327
2327
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -2490,7 +2490,7 @@ interface Int16Array {
2490
2490
* @param compareFn The name of the function used to determine the order of the elements. If
2491
2491
* omitted, the elements are sorted in ascending, ASCII character order.
2492
2492
*/
2493
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Int16Array ;
2493
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
2494
2494
2495
2495
/**
2496
2496
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
@@ -2575,7 +2575,7 @@ interface Uint16Array {
2575
2575
* is treated as length+end.
2576
2576
* @param end If not specified, length of the this object is used as its default value.
2577
2577
*/
2578
- copyWithin ( target : number , start : number , end ?: number ) : Uint16Array ;
2578
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
2579
2579
2580
2580
/**
2581
2581
* Determines whether all the members of an array satisfy the specified test.
@@ -2595,7 +2595,7 @@ interface Uint16Array {
2595
2595
* @param end index to stop filling the array at. If end is negative, it is treated as
2596
2596
* length+end.
2597
2597
*/
2598
- fill ( value : number , start ?: number , end ?: number ) : Uint16Array ;
2598
+ fill ( value : number , start ?: number , end ?: number ) : this ;
2599
2599
2600
2600
/**
2601
2601
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -2764,7 +2764,7 @@ interface Uint16Array {
2764
2764
* @param compareFn The name of the function used to determine the order of the elements. If
2765
2765
* omitted, the elements are sorted in ascending, ASCII character order.
2766
2766
*/
2767
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Uint16Array ;
2767
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
2768
2768
2769
2769
/**
2770
2770
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
@@ -2848,7 +2848,7 @@ interface Int32Array {
2848
2848
* is treated as length+end.
2849
2849
* @param end If not specified, length of the this object is used as its default value.
2850
2850
*/
2851
- copyWithin ( target : number , start : number , end ?: number ) : Int32Array ;
2851
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
2852
2852
2853
2853
/**
2854
2854
* Determines whether all the members of an array satisfy the specified test.
@@ -2868,7 +2868,7 @@ interface Int32Array {
2868
2868
* @param end index to stop filling the array at. If end is negative, it is treated as
2869
2869
* length+end.
2870
2870
*/
2871
- fill ( value : number , start ?: number , end ?: number ) : Int32Array ;
2871
+ fill ( value : number , start ?: number , end ?: number ) : this ;
2872
2872
2873
2873
/**
2874
2874
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -3037,7 +3037,7 @@ interface Int32Array {
3037
3037
* @param compareFn The name of the function used to determine the order of the elements. If
3038
3038
* omitted, the elements are sorted in ascending, ASCII character order.
3039
3039
*/
3040
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Int32Array ;
3040
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
3041
3041
3042
3042
/**
3043
3043
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
@@ -3121,7 +3121,7 @@ interface Uint32Array {
3121
3121
* is treated as length+end.
3122
3122
* @param end If not specified, length of the this object is used as its default value.
3123
3123
*/
3124
- copyWithin ( target : number , start : number , end ?: number ) : Uint32Array ;
3124
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
3125
3125
3126
3126
/**
3127
3127
* Determines whether all the members of an array satisfy the specified test.
@@ -3141,7 +3141,7 @@ interface Uint32Array {
3141
3141
* @param end index to stop filling the array at. If end is negative, it is treated as
3142
3142
* length+end.
3143
3143
*/
3144
- fill ( value : number , start ?: number , end ?: number ) : Uint32Array ;
3144
+ fill ( value : number , start ?: number , end ?: number ) : this ;
3145
3145
3146
3146
/**
3147
3147
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -3310,7 +3310,7 @@ interface Uint32Array {
3310
3310
* @param compareFn The name of the function used to determine the order of the elements. If
3311
3311
* omitted, the elements are sorted in ascending, ASCII character order.
3312
3312
*/
3313
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Uint32Array ;
3313
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
3314
3314
3315
3315
/**
3316
3316
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
@@ -3394,7 +3394,7 @@ interface Float32Array {
3394
3394
* is treated as length+end.
3395
3395
* @param end If not specified, length of the this object is used as its default value.
3396
3396
*/
3397
- copyWithin ( target : number , start : number , end ?: number ) : Float32Array ;
3397
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
3398
3398
3399
3399
/**
3400
3400
* Determines whether all the members of an array satisfy the specified test.
@@ -3414,7 +3414,7 @@ interface Float32Array {
3414
3414
* @param end index to stop filling the array at. If end is negative, it is treated as
3415
3415
* length+end.
3416
3416
*/
3417
- fill ( value : number , start ?: number , end ?: number ) : Float32Array ;
3417
+ fill ( value : number , start ?: number , end ?: number ) : this ;
3418
3418
3419
3419
/**
3420
3420
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -3583,7 +3583,7 @@ interface Float32Array {
3583
3583
* @param compareFn The name of the function used to determine the order of the elements. If
3584
3584
* omitted, the elements are sorted in ascending, ASCII character order.
3585
3585
*/
3586
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Float32Array ;
3586
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
3587
3587
3588
3588
/**
3589
3589
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
@@ -3668,7 +3668,7 @@ interface Float64Array {
3668
3668
* is treated as length+end.
3669
3669
* @param end If not specified, length of the this object is used as its default value.
3670
3670
*/
3671
- copyWithin ( target : number , start : number , end ?: number ) : Float64Array ;
3671
+ copyWithin ( target : number , start : number , end ?: number ) : this ;
3672
3672
3673
3673
/**
3674
3674
* Determines whether all the members of an array satisfy the specified test.
@@ -3688,7 +3688,7 @@ interface Float64Array {
3688
3688
* @param end index to stop filling the array at. If end is negative, it is treated as
3689
3689
* length+end.
3690
3690
*/
3691
- fill ( value : number , start ?: number , end ?: number ) : Float64Array ;
3691
+ fill ( value : number , start ?: number , end ?: number ) : this ;
3692
3692
3693
3693
/**
3694
3694
* Returns the elements of an array that meet the condition specified in a callback function.
@@ -3857,7 +3857,7 @@ interface Float64Array {
3857
3857
* @param compareFn The name of the function used to determine the order of the elements. If
3858
3858
* omitted, the elements are sorted in ascending, ASCII character order.
3859
3859
*/
3860
- sort ( compareFn ?: ( a : number , b : number ) => number ) : Float64Array ;
3860
+ sort ( compareFn ?: ( a : number , b : number ) => number ) : this ;
3861
3861
3862
3862
/**
3863
3863
* Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
0 commit comments