summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2023.array.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-14 11:58:47 +0100
committerGitHub <noreply@github.com>2024-09-14 11:58:47 +0100
commitaf2d992ecd2b9320072164b6ee295c31a3194406 (patch)
tree0926e2852aa2c4eb300e1f54f4c84d7568589b3b /cli/tsc/dts/lib.es2023.array.d.ts
parent2c0bf6fd65b3276c4818c73028b19819608c8e70 (diff)
feat: TypeScript 5.6 and `npm:@types/node@22` (#25614)
Diffstat (limited to 'cli/tsc/dts/lib.es2023.array.d.ts')
-rw-r--r--cli/tsc/dts/lib.es2023.array.d.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tsc/dts/lib.es2023.array.d.ts b/cli/tsc/dts/lib.es2023.array.d.ts
index bd4db2ceb..57362da53 100644
--- a/cli/tsc/dts/lib.es2023.array.d.ts
+++ b/cli/tsc/dts/lib.es2023.array.d.ts
@@ -203,7 +203,7 @@ interface Int8Array {
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
- toReversed(): Uint8Array;
+ toReversed(): Int8Array;
/**
* Copies and sorts the array.
@@ -211,11 +211,11 @@ interface Int8Array {
* 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.
@@ -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 {