mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
9713cc1a75
bigint is needed to represent all 64-bit ints that these arrays could contain.
104 lines
3.4 KiB
TypeScript
104 lines
3.4 KiB
TypeScript
interface Array<T> {
|
|
/**
|
|
* 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): T | undefined;
|
|
}
|
|
|
|
interface ReadonlyArray<T> {
|
|
/**
|
|
* 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): T | undefined;
|
|
}
|
|
|
|
interface Int8Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Uint8Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Uint8ClampedArray {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Int16Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Uint16Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Int32Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Uint32Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Float32Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
interface Float64Array {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
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): bigint | undefined;
|
|
}
|
|
|
|
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): bigint | undefined;
|
|
}
|