Skip to content

Commit acce766

Browse files
committed
Tweak
1 parent d3e6165 commit acce766

File tree

4 files changed

+47
-47
lines changed

4 files changed

+47
-47
lines changed

src/lib/es2023.array.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
193193
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
194194
* value otherwise. If omitted, the elements are sorted in ascending order.
195195
* ```ts
196-
* const myNums = Int8Array<Buffer>.from([11, 2, 22, 1]);
196+
* const myNums = Int8Array.from([11, 2, 22, 1]);
197197
* myNums.toSorted((a, b) => a - b) // Int8Array<Buffer>(4) [1, 2, 11, 22]
198198
* ```
199199
*/
@@ -257,7 +257,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
257257
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
258258
* value otherwise. If omitted, the elements are sorted in ascending order.
259259
* ```ts
260-
* const myNums = Uint8Array<Buffer>.from([11, 2, 22, 1]);
260+
* const myNums = Uint8Array.from([11, 2, 22, 1]);
261261
* myNums.toSorted((a, b) => a - b) // Uint8Array<Buffer>(4) [1, 2, 11, 22]
262262
* ```
263263
*/
@@ -329,7 +329,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
329329
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
330330
* value otherwise. If omitted, the elements are sorted in ascending order.
331331
* ```ts
332-
* const myNums = Uint8ClampedArray<Buffer>.from([11, 2, 22, 1]);
332+
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
333333
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray<Buffer>(4) [1, 2, 11, 22]
334334
* ```
335335
*/
@@ -393,7 +393,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
393393
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
394394
* value otherwise. If omitted, the elements are sorted in ascending order.
395395
* ```ts
396-
* const myNums = Int16Array<Buffer>.from([11, 2, -22, 1]);
396+
* const myNums = Int16Array.from([11, 2, -22, 1]);
397397
* myNums.toSorted((a, b) => a - b) // Int16Array<Buffer>(4) [-22, 1, 2, 11]
398398
* ```
399399
*/
@@ -465,7 +465,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
465465
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
466466
* value otherwise. If omitted, the elements are sorted in ascending order.
467467
* ```ts
468-
* const myNums = Uint16Array<Buffer>.from([11, 2, 22, 1]);
468+
* const myNums = Uint16Array.from([11, 2, 22, 1]);
469469
* myNums.toSorted((a, b) => a - b) // Uint16Array<Buffer>(4) [1, 2, 11, 22]
470470
* ```
471471
*/
@@ -529,7 +529,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
529529
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
530530
* value otherwise. If omitted, the elements are sorted in ascending order.
531531
* ```ts
532-
* const myNums = Int32Array<Buffer>.from([11, 2, -22, 1]);
532+
* const myNums = Int32Array.from([11, 2, -22, 1]);
533533
* myNums.toSorted((a, b) => a - b) // Int32Array<Buffer>(4) [-22, 1, 2, 11]
534534
* ```
535535
*/
@@ -601,7 +601,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
601601
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
602602
* value otherwise. If omitted, the elements are sorted in ascending order.
603603
* ```ts
604-
* const myNums = Uint32Array<Buffer>.from([11, 2, 22, 1]);
604+
* const myNums = Uint32Array.from([11, 2, 22, 1]);
605605
* myNums.toSorted((a, b) => a - b) // Uint32Array<Buffer>(4) [1, 2, 11, 22]
606606
* ```
607607
*/
@@ -673,7 +673,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
673673
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
674674
* value otherwise. If omitted, the elements are sorted in ascending order.
675675
* ```ts
676-
* const myNums = Float32Array<Buffer>.from([11.25, 2, -22.5, 1]);
676+
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
677677
* myNums.toSorted((a, b) => a - b) // Float32Array<Buffer>(4) [-22.5, 1, 2, 11.5]
678678
* ```
679679
*/
@@ -745,7 +745,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
745745
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
746746
* value otherwise. If omitted, the elements are sorted in ascending order.
747747
* ```ts
748-
* const myNums = Float64Array<Buffer>.from([11.25, 2, -22.5, 1]);
748+
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
749749
* myNums.toSorted((a, b) => a - b) // Float64Array<Buffer>(4) [-22.5, 1, 2, 11.5]
750750
* ```
751751
*/
@@ -817,7 +817,7 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
817817
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
818818
* value otherwise. If omitted, the elements are sorted in ascending order.
819819
* ```ts
820-
* const myNums = BigInt64Array<Buffer>.from([11n, 2n, -22n, 1n]);
820+
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
821821
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array<Buffer>(4) [-22n, 1n, 2n, 11n]
822822
* ```
823823
*/
@@ -889,7 +889,7 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
889889
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
890890
* value otherwise. If omitted, the elements are sorted in ascending order.
891891
* ```ts
892-
* const myNums = BigUint64Array<Buffer>.from([11n, 2n, 22n, 1n]);
892+
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
893893
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array<Buffer>(4) [1n, 2n, 11n, 22n]
894894
* ```
895895
*/

src/lib/es5.d.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ interface ReadonlyArray<T> {
12421242
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
12431243
/**
12441244
* Performs the specified action for each element in an array.
1245-
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1246-
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1245+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1246+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
12471247
*/
12481248
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
12491249
/**
@@ -1433,8 +1433,8 @@ interface Array<T> {
14331433
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
14341434
/**
14351435
* Performs the specified action for each element in an array.
1436-
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1437-
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1436+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1437+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
14381438
*/
14391439
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
14401440
/**
@@ -1940,9 +1940,9 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
19401940

19411941
/**
19421942
* Performs the specified action for each element in an array.
1943-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
1943+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
19441944
* callbackfn function one time for each element in the array.
1945-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
1945+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
19461946
* If thisArg is omitted, undefined is used as the this value.
19471947
*/
19481948
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -1951,7 +1951,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
19511951
* Returns the index of the first occurrence of a value in an array.
19521952
* @param searchElement The value to locate in the array.
19531953
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1954-
* search starts at index 0.
1954+
* search starts at index 0.
19551955
*/
19561956
indexOf(searchElement: number, fromIndex?: number): number;
19571957

@@ -2221,9 +2221,9 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
22212221

22222222
/**
22232223
* Performs the specified action for each element in an array.
2224-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
2224+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
22252225
* callbackfn function one time for each element in the array.
2226-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
2226+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
22272227
* If thisArg is omitted, undefined is used as the this value.
22282228
*/
22292229
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -2232,7 +2232,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
22322232
* Returns the index of the first occurrence of a value in an array.
22332233
* @param searchElement The value to locate in the array.
22342234
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2235-
* search starts at index 0.
2235+
* search starts at index 0.
22362236
*/
22372237
indexOf(searchElement: number, fromIndex?: number): number;
22382238

@@ -2502,9 +2502,9 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
25022502

25032503
/**
25042504
* Performs the specified action for each element in an array.
2505-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
2505+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
25062506
* callbackfn function one time for each element in the array.
2507-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
2507+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
25082508
* If thisArg is omitted, undefined is used as the this value.
25092509
*/
25102510
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -2513,7 +2513,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
25132513
* Returns the index of the first occurrence of a value in an array.
25142514
* @param searchElement The value to locate in the array.
25152515
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2516-
* search starts at index 0.
2516+
* search starts at index 0.
25172517
*/
25182518
indexOf(searchElement: number, fromIndex?: number): number;
25192519

@@ -2783,17 +2783,17 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
27832783

27842784
/**
27852785
* Performs the specified action for each element in an array.
2786-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
2786+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
27872787
* callbackfn function one time for each element in the array.
2788-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
2788+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
27892789
* If thisArg is omitted, undefined is used as the this value.
27902790
*/
27912791
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
27922792
/**
27932793
* Returns the index of the first occurrence of a value in an array.
27942794
* @param searchElement The value to locate in the array.
27952795
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2796-
* search starts at index 0.
2796+
* search starts at index 0.
27972797
*/
27982798
indexOf(searchElement: number, fromIndex?: number): number;
27992799

@@ -3063,9 +3063,9 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
30633063

30643064
/**
30653065
* Performs the specified action for each element in an array.
3066-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
3066+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
30673067
* callbackfn function one time for each element in the array.
3068-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
3068+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
30693069
* If thisArg is omitted, undefined is used as the this value.
30703070
*/
30713071
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -3074,7 +3074,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
30743074
* Returns the index of the first occurrence of a value in an array.
30753075
* @param searchElement The value to locate in the array.
30763076
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3077-
* search starts at index 0.
3077+
* search starts at index 0.
30783078
*/
30793079
indexOf(searchElement: number, fromIndex?: number): number;
30803080

@@ -3343,9 +3343,9 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
33433343

33443344
/**
33453345
* Performs the specified action for each element in an array.
3346-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
3346+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
33473347
* callbackfn function one time for each element in the array.
3348-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
3348+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
33493349
* If thisArg is omitted, undefined is used as the this value.
33503350
*/
33513351
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -3354,7 +3354,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
33543354
* Returns the index of the first occurrence of a value in an array.
33553355
* @param searchElement The value to locate in the array.
33563356
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3357-
* search starts at index 0.
3357+
* search starts at index 0.
33583358
*/
33593359
indexOf(searchElement: number, fromIndex?: number): number;
33603360

@@ -3624,17 +3624,17 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
36243624

36253625
/**
36263626
* Performs the specified action for each element in an array.
3627-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
3627+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
36283628
* callbackfn function one time for each element in the array.
3629-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
3629+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
36303630
* If thisArg is omitted, undefined is used as the this value.
36313631
*/
36323632
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
36333633
/**
36343634
* Returns the index of the first occurrence of a value in an array.
36353635
* @param searchElement The value to locate in the array.
36363636
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3637-
* search starts at index 0.
3637+
* search starts at index 0.
36383638
*/
36393639
indexOf(searchElement: number, fromIndex?: number): number;
36403640

@@ -3904,9 +3904,9 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
39043904

39053905
/**
39063906
* Performs the specified action for each element in an array.
3907-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
3907+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
39083908
* callbackfn function one time for each element in the array.
3909-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
3909+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
39103910
* If thisArg is omitted, undefined is used as the this value.
39113911
*/
39123912
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -3915,7 +3915,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
39153915
* Returns the index of the first occurrence of a value in an array.
39163916
* @param searchElement The value to locate in the array.
39173917
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3918-
* search starts at index 0.
3918+
* search starts at index 0.
39193919
*/
39203920
indexOf(searchElement: number, fromIndex?: number): number;
39213921

@@ -4185,9 +4185,9 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
41854185

41864186
/**
41874187
* Performs the specified action for each element in an array.
4188-
* @param callbackfn A function that accepts up to three arguments. forEach calls the
4188+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
41894189
* callbackfn function one time for each element in the array.
4190-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
4190+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
41914191
* If thisArg is omitted, undefined is used as the this value.
41924192
*/
41934193
forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
@@ -4196,7 +4196,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
41964196
* Returns the index of the first occurrence of a value in an array.
41974197
* @param searchElement The value to locate in the array.
41984198
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4199-
* search starts at index 0.
4199+
* search starts at index 0.
42004200
*/
42014201
indexOf(searchElement: number, fromIndex?: number): number;
42024202

0 commit comments

Comments
 (0)