/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
typescript
/
lib
/
/home/techb158/balavpn.abdallabala.com/node_modules/typescript/lib
mkdir
upload
Name
Size
Mode
Actions
cs/
-
0777
rm
de/
-
0777
rm
es/
-
0777
rm
fr/
-
0777
rm
it/
-
0777
rm
ja/
-
0777
rm
ko/
-
0777
rm
pl/
-
0777
rm
pt-br/
-
0777
rm
ru/
-
0777
rm
tr/
-
0777
rm
zh-cn/
-
0777
rm
zh-tw/
-
0777
rm
lib.d.ts
953
0666
edit
dl
rm
lib.decorators.d.ts
13153
0666
edit
dl
rm
lib.decorators.legacy.d.ts
1287
0666
edit
dl
rm
lib.dom.asynciterable.d.ts
933
0666
edit
dl
rm
lib.dom.d.ts
2349483
0666
edit
dl
rm
lib.dom.iterable.d.ts
933
0666
edit
dl
rm
lib.es5.d.ts
218972
0666
edit
dl
rm
lib.es6.d.ts
993
0666
edit
dl
rm
lib.es2015.collection.d.ts
5305
0666
edit
dl
rm
lib.es2015.core.d.ts
22824
0666
edit
dl
rm
lib.es2015.d.ts
1202
0666
edit
dl
rm
lib.es2015.generator.d.ts
2518
0666
edit
dl
rm
lib.es2015.iterable.d.ts
18185
0666
edit
dl
rm
lib.es2015.promise.d.ts
3161
0666
edit
dl
rm
lib.es2015.proxy.d.ts
5212
0666
edit
dl
rm
lib.es2015.reflect.d.ts
6454
0666
edit
dl
rm
lib.es2015.symbol.d.ts
1610
0666
edit
dl
rm
lib.es2015.symbol.wellknown.d.ts
10971
0666
edit
dl
rm
lib.es2016.array.include.d.ts
5165
0666
edit
dl
rm
lib.es2016.d.ts
926
0666
edit
dl
rm
lib.es2016.full.d.ts
993
0666
edit
dl
rm
lib.es2016.intl.d.ts
1445
0666
edit
dl
rm
lib.es2017.arraybuffer.d.ts
876
0666
edit
dl
rm
lib.es2017.d.ts
1123
0666
edit
dl
rm
lib.es2017.date.d.ts
1877
0666
edit
dl
rm
lib.es2017.full.d.ts
993
0666
edit
dl
rm
lib.es2017.intl.d.ts
1410
0666
edit
dl
rm
lib.es2017.object.d.ts
2434
0666
edit
dl
rm
lib.es2017.sharedmemory.d.ts
7170
0666
edit
dl
rm
lib.es2017.string.d.ts
2339
0666
edit
dl
rm
lib.es2017.typedarrays.d.ts
1503
0666
edit
dl
rm
lib.es2018.asyncgenerator.d.ts
2653
0666
edit
dl
rm
lib.es2018.asynciterable.d.ts
2218
0666
edit
dl
rm
lib.es2018.d.ts
1049
0666
edit
dl
rm
lib.es2018.full.d.ts
1035
0666
edit
dl
rm
lib.es2018.intl.d.ts
2982
0666
edit
dl
rm
lib.es2018.promise.d.ts
1314
0666
edit
dl
rm
lib.es2018.regexp.d.ts
1193
0666
edit
dl
rm
lib.es2019.array.d.ts
3124
0666
edit
dl
rm
lib.es2019.d.ts
1032
0666
edit
dl
rm
lib.es2019.full.d.ts
1035
0666
edit
dl
rm
lib.es2019.intl.d.ts
919
0666
edit
dl
rm
lib.es2019.object.d.ts
1434
0666
edit
dl
rm
lib.es2019.string.d.ts
1489
0666
edit
dl
rm
lib.es2019.symbol.d.ts
967
0666
edit
dl
rm
lib.es2020.bigint.d.ts
38258
0666
edit
dl
rm
lib.es2020.d.ts
1162
0666
edit
dl
rm
lib.es2020.date.d.ts
2917
0666
edit
dl
rm
lib.es2020.full.d.ts
1035
0666
edit
dl
rm
lib.es2020.intl.d.ts
22399
0666
edit
dl
rm
lib.es2020.number.d.ts
1548
0666
edit
dl
rm
lib.es2020.promise.d.ts
1764
0666
edit
dl
rm
lib.es2020.sharedmemory.d.ts
5089
0666
edit
dl
rm
lib.es2020.string.d.ts
2451
0666
edit
dl
rm
lib.es2020.symbol.wellknown.d.ts
1566
0666
edit
dl
rm
lib.es2021.d.ts
997
0666
edit
dl
rm
lib.es2021.full.d.ts
1035
0666
edit
dl
rm
lib.es2021.intl.d.ts
8206
0666
edit
dl
rm
lib.es2021.promise.d.ts
2223
0666
edit
dl
rm
lib.es2021.string.d.ts
1553
0666
edit
dl
rm
lib.es2021.weakref.d.ts
3132
0666
edit
dl
rm
lib.es2022.array.d.ts
4637
0666
edit
dl
rm
lib.es2022.d.ts
1069
0666
edit
dl
rm
lib.es2022.error.d.ts
2340
0666
edit
dl
rm
lib.es2022.full.d.ts
1035
0666
edit
dl
rm
lib.es2022.intl.d.ts
7653
0666
edit
dl
rm
lib.es2022.object.d.ts
1046
0666
edit
dl
rm
lib.es2022.regexp.d.ts
1304
0666
edit
dl
rm
lib.es2022.string.d.ts
1116
0666
edit
dl
rm
lib.es2023.array.d.ts
40197
0666
edit
dl
rm
lib.es2023.collection.d.ts
861
0666
edit
dl
rm
lib.es2023.d.ts
960
0666
edit
dl
rm
lib.es2023.full.d.ts
1035
0666
edit
dl
rm
lib.es2023.intl.d.ts
2854
0666
edit
dl
rm
lib.es2024.arraybuffer.d.ts
2598
0666
edit
dl
rm
lib.es2024.collection.d.ts
1185
0666
edit
dl
rm
lib.es2024.d.ts
1127
0666
edit
dl
rm
lib.es2024.full.d.ts
1035
0666
edit
dl
rm
lib.es2024.object.d.ts
1220
0666
edit
dl
rm
lib.es2024.promise.d.ts
1350
0666
edit
dl
rm
lib.es2024.regexp.d.ts
1034
0666
edit
dl
rm
lib.es2024.sharedmemory.d.ts
3038
0666
edit
dl
rm
lib.es2024.string.d.ts
1155
0666
edit
dl
rm
lib.es2025.collection.d.ts
3839
0666
edit
dl
rm
lib.es2025.d.ts
1079
0666
edit
dl
rm
lib.es2025.float16.d.ts
20489
0666
edit
dl
rm
lib.es2025.full.d.ts
1035
0666
edit
dl
rm
lib.es2025.intl.d.ts
9390
0666
edit
dl
rm
lib.es2025.iterator.d.ts
8637
0666
edit
dl
rm
lib.es2025.promise.d.ts
1619
0666
edit
dl
rm
lib.es2025.regexp.d.ts
1255
0666
edit
dl
rm
lib.esnext.array.d.ts
1752
0666
edit
dl
rm
lib.esnext.collection.d.ts
2598
0666
edit
dl
rm
lib.esnext.d.ts
1244
0666
edit
dl
rm
lib.esnext.date.d.ts
917
0666
edit
dl
rm
lib.esnext.decorators.d.ts
1031
0666
edit
dl
rm
lib.esnext.disposable.d.ts
6767
0666
edit
dl
rm
lib.esnext.error.d.ts
990
0666
edit
dl
rm
lib.esnext.full.d.ts
1035
0666
edit
dl
rm
lib.esnext.intl.d.ts
5305
0666
edit
dl
rm
lib.esnext.sharedmemory.d.ts
1028
0666
edit
dl
rm
lib.esnext.temporal.d.ts
22011
0666
edit
dl
rm
lib.esnext.typedarrays.d.ts
3350
0666
edit
dl
rm
lib.scripthost.d.ts
9412
0666
edit
dl
rm
lib.webworker.asynciterable.d.ts
933
0666
edit
dl
rm
lib.webworker.d.ts
787076
0666
edit
dl
rm
lib.webworker.importscripts.d.ts
1002
0666
edit
dl
rm
lib.webworker.iterable.d.ts
933
0666
edit
dl
rm
tsc.js
267
0666
edit
dl
rm
tsserver.js
272
0666
edit
dl
rm
tsserverlibrary.d.ts
866
0666
edit
dl
rm
tsserverlibrary.js
1013
0666
edit
dl
rm
typescript.d.ts
588452
0666
edit
dl
rm
typescript.js
9144216
0666
edit
dl
rm
typesMap.json
16788
0666
edit
dl
rm
typingsInstaller.js
280
0666
edit
dl
rm
watchGuard.js
2314
0666
edit
dl
rm
_tsc.js
6239091
0666
edit
dl
rm
_tsserver.js
27889
0666
edit
dl
rm
_typingsInstaller.js
10364
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/typescript/lib/lib.es2023.array.d.ts
(40197B)
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ interface Array<T> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number; /** * Returns a copy of an array with its elements reversed. */ toReversed(): T[]; /** * Returns a copy of an array with its elements sorted. * @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, UTF-16 code unit order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` */ toSorted(compareFn?: (a: T, b: T) => number): T[]; /** * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @param items Elements to insert into the copied array in place of the deleted elements. * @returns The copied array. */ toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; /** * Copies an array and removes elements while returning the remaining elements. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @returns A copy of the original array with the remaining elements. */ toSpliced(start: number, deleteCount?: number): T[]; /** * Copies an array, then overwrites the value at the provided index with the * given value. If the index is negative, then it replaces from the end * of the array. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @param value The value to write into the copied array. * @returns The copied array with the updated value. */ with(index: number, value: T): T[]; } interface ReadonlyArray<T> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends T>( predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any, ): T | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copied array with all of its elements reversed. */ toReversed(): T[]; /** * 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, UTF-16 code unit order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` */ toSorted(compareFn?: (a: T, b: T) => number): T[]; /** * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @param items Elements to insert into the copied array in place of the deleted elements. * @returns A copy of the original array with the remaining elements. */ toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; /** * Copies an array and removes elements while returning the remaining elements. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @returns A copy of the original array with the remaining elements. */ toSpliced(start: number, deleteCount?: number): T[]; /** * Copies an array, then overwrites the value at the provided index with the * given value. If the index is negative, then it replaces from the end * of the array * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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: T): T[]; } interface Int8Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Int8Array<ArrayBuffer>; /** * 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 = 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): Int8Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Int8Array<ArrayBuffer>; } interface Uint8Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Uint8Array<ArrayBuffer>; /** * 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] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Uint8Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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<ArrayBuffer>; } interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Uint8ClampedArray<ArrayBuffer>; /** * 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 = Uint8ClampedArray.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Uint8ClampedArray<ArrayBuffer>; } interface Int16Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Int16Array<ArrayBuffer>; /** * 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 = Int16Array.from([11, 2, -22, 1]); * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Int16Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Int16Array<ArrayBuffer>; } interface Uint16Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Uint16Array<ArrayBuffer>; /** * 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 = Uint16Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Uint16Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Uint16Array<ArrayBuffer>; } interface Int32Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Int32Array<ArrayBuffer>; /** * 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 = Int32Array.from([11, 2, -22, 1]); * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Int32Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Int32Array<ArrayBuffer>; } interface Uint32Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Uint32Array<ArrayBuffer>; /** * 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 = Uint32Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Uint32Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Uint32Array<ArrayBuffer>; } interface Float32Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Float32Array<ArrayBuffer>; /** * 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 = Float32Array.from([11.25, 2, -22.5, 1]); * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Float32Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Float32Array<ArrayBuffer>; } interface Float64Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>( predicate: ( value: number, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: number, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): Float64Array<ArrayBuffer>; /** * 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 = Float64Array.from([11.25, 2, -22.5, 1]); * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] * ``` */ toSorted(compareFn?: (a: number, b: number) => number): Float64Array<ArrayBuffer>; /** * Copies the array and inserts the given number at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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): Float64Array<ArrayBuffer>; } interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends bigint>( predicate: ( value: bigint, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: bigint, index: number, array: this, ) => unknown, thisArg?: any, ): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: bigint, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): BigInt64Array<ArrayBuffer>; /** * 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 = BigInt64Array.from([11n, 2n, -22n, 1n]); * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] * ``` */ toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array<ArrayBuffer>; /** * Copies the array and inserts the given bigint at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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: bigint): BigInt64Array<ArrayBuffer>; } interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends bigint>( predicate: ( value: bigint, index: number, array: this, ) => value is S, thisArg?: any, ): S | undefined; findLast( predicate: ( value: bigint, index: number, array: this, ) => unknown, thisArg?: any, ): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex( predicate: ( value: bigint, index: number, array: this, ) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ toReversed(): BigUint64Array<ArrayBuffer>; /** * 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 = BigUint64Array.from([11n, 2n, 22n, 1n]); * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] * ``` */ toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array<ArrayBuffer>; /** * Copies the array and inserts the given bigint at the provided index. * @param index The index of the value to overwrite. If the index is * negative, then it replaces from the end of the array. * @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: bigint): BigUint64Array<ArrayBuffer>; }
Save
cmd:
run