/** * @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/TypedArray */ export type TypedArray = | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array ; export function isTypedArray(value: unknown): value is TypedArray { if (!ArrayBuffer.isView(value)) return false; return "length" in value && "at" in value; }