typescript 5.6.0-dev.20240716 → 5.6.0-dev.20240718
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.es2023.array.d.ts +5 -5
- package/lib/tsc.js +328 -181
- package/lib/typescript.d.ts +89 -22
- package/lib/typescript.js +515 -314
- package/package.json +16 -15
|
@@ -203,7 +203,7 @@ interface Int8Array {
|
|
|
203
203
|
/**
|
|
204
204
|
* Copies the array and returns the copy with the elements in reverse order.
|
|
205
205
|
*/
|
|
206
|
-
toReversed():
|
|
206
|
+
toReversed(): Int8Array;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Copies and sorts the array.
|
|
@@ -211,11 +211,11 @@ interface Int8Array {
|
|
|
211
211
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
212
212
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
213
213
|
* ```ts
|
|
214
|
-
* const myNums =
|
|
215
|
-
* myNums.toSorted((a, b) => a - b) //
|
|
214
|
+
* const myNums = Int8Array.from([11, 2, 22, 1]);
|
|
215
|
+
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
|
|
216
216
|
* ```
|
|
217
217
|
*/
|
|
218
|
-
toSorted(compareFn?: (a: number, b: number) => number):
|
|
218
|
+
toSorted(compareFn?: (a: number, b: number) => number): Int8Array;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -224,7 +224,7 @@ interface Int8Array {
|
|
|
224
224
|
* @param value The value to insert into the copied array.
|
|
225
225
|
* @returns A copy of the original array with the inserted value.
|
|
226
226
|
*/
|
|
227
|
-
with(index: number, value: number):
|
|
227
|
+
with(index: number, value: number): Int8Array;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
interface Uint8Array {
|