mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
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;
|
|
}
|