mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Big[U]Int64Array.at returns bigint, not number (#46733)
bigint is needed to represent all 64-bit ints that these arrays could contain.
This commit is contained in:
committed by
GitHub
parent
3ef3cdddb3
commit
9713cc1a75
4
src/lib/es2022.array.d.ts
vendored
4
src/lib/es2022.array.d.ts
vendored
@@ -91,7 +91,7 @@ interface BigInt64Array {
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
*/
|
||||
at(index: number): number | undefined;
|
||||
at(index: number): bigint | undefined;
|
||||
}
|
||||
|
||||
interface BigUint64Array {
|
||||
@@ -99,5 +99,5 @@ interface BigUint64Array {
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
*/
|
||||
at(index: number): number | undefined;
|
||||
at(index: number): bigint | undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user