Skip to content

Commit

Permalink
Bump version to 5.5.4 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Jul 22, 2024
1 parent c0ded04 commit c8a7d58
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 150 deletions.
10 changes: 5 additions & 5 deletions lib/lib.es2023.array.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,19 @@ interface Int8Array {
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
toReversed(): Int8Array;

/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* ```ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* const myNums = Int8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
* ```
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
toSorted(compareFn?: (a: number, b: number) => number): Int8Array;

/**
* Copies the array and inserts the given number at the provided index.
Expand All @@ -224,7 +224,7 @@ interface Int8Array {
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
with(index: number, value: number): Int8Array;
}

interface Uint8Array {
Expand Down
Loading

0 comments on commit c8a7d58

Please sign in to comment.