Type Alias TypedArray<DType>

TypedArray<DType>: {
    u1: Uint8Array;
    u1c: Uint8ClampedArray;
    u2: Uint16Array;
    u4: Uint32Array;
    i1: Int8Array;
    i2: Int16Array;
    i4: Int32Array;
    f4: Float32Array;
    f8: Float64Array;
}[DType]

an instance of any typed array, such as Uint8Array you can narrow down the type through the use of a NumericDType string annotation

Type Parameters

const clammped_bytes_arr: TypedArray<"u1c"> = new Uint8ClampedArray(42)