Type Alias TypedArrayConstructor<DType>

TypedArrayConstructor<DType>: {
    u1: Uint8ArrayConstructor;
    u1c: Uint8ClampedArrayConstructor;
    u2: Uint16ArrayConstructor;
    u4: Uint32ArrayConstructor;
    i1: Int8ArrayConstructor;
    i2: Int16ArrayConstructor;
    i4: Int32ArrayConstructor;
    f4: Float32ArrayConstructor;
    f8: Float64ArrayConstructor;
}[DType]

abstract constructor of any typed array, such as new Uint8Array(...) you can narrow down the constructor through the use of a NumericDType string annotation

Type Parameters

const clamp_arr_constructor: TypedArrayConstructor<"u1c"> = Uint8ClampedArray