Type Alias TypedArrayValueType<TinputTypedArray>

TypedArrayValueType<TinputTypedArray>: TinputTypedArray extends
        | Int8Array
        | Uint8Array
        | Uint8ClampedArray
        | Int16Array
        | Uint16Array
        | Int32Array
        | Uint32Array
        | Float32Array
        | Float64Array
    ? number
    : TinputTypedArray extends BigInt64Array | BigUint64Array
        ? bigint
        : "ERROR(Zen/TypeZen): Not a TypedArray"

Returns the value used in the TypedArray, i.e number or bigint

Type Parameters

  • TinputTypedArray extends TypedArray