AK-21/Graphite-Industrial-Intelligence
0
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17interface Array<T> {18 /**19 * Returns the item located at the specified index.20 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.21 */22 at(index: number): T | undefined;23}24 25interface ReadonlyArray<T> {26 /**27 * Returns the item located at the specified index.28 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.29 */30 at(index: number): T | undefined;31}32 33interface Int8Array<TArrayBuffer extends ArrayBufferLike> {34 /**35 * Returns the item located at the specified index.36 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.37 */38 at(index: number): number | undefined;39}40 41interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {42 /**43 * Returns the item located at the specified index.44 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.45 */46 at(index: number): number | undefined;47}48 49interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {50 /**51 * Returns the item located at the specified index.52 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.53 */54 at(index: number): number | undefined;55}56 57interface Int16Array<TArrayBuffer extends ArrayBufferLike> {58 /**59 * Returns the item located at the specified index.60 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.61 */62 at(index: number): number | undefined;63}64 65interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {66 /**67 * Returns the item located at the specified index.68 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.69 */70 at(index: number): number | undefined;71}72 73interface Int32Array<TArrayBuffer extends ArrayBufferLike> {74 /**75 * Returns the item located at the specified index.76 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.77 */78 at(index: number): number | undefined;79}80 81interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {82 /**83 * Returns the item located at the specified index.84 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.85 */86 at(index: number): number | undefined;87}88 89interface Float32Array<TArrayBuffer extends ArrayBufferLike> {90 /**91 * Returns the item located at the specified index.92 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.93 */94 at(index: number): number | undefined;95}96 97interface Float64Array<TArrayBuffer extends ArrayBufferLike> {98 /**99 * Returns the item located at the specified index.100 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.101 */102 at(index: number): number | undefined;103}104 105interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {106 /**107 * Returns the item located at the specified index.108 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.109 */110 at(index: number): bigint | undefined;111}112 113interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {114 /**115 * Returns the item located at the specified index.116 * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.117 */118 at(index: number): bigint | undefined;119}120 