Interface Uint8ClampedArrayConstructor

    interface Uint8ClampedArrayConstructor {
        new Uint8ClampedArrayConstructor(
            length: number,
        ): Uint8ClampedArray<ArrayBuffer>;
        new Uint8ClampedArrayConstructor(
            array: ArrayLike<number>,
        ): Uint8ClampedArray<ArrayBuffer>;
        new Uint8ClampedArrayConstructor<
            TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
        >(
            buffer: TArrayBuffer,
            byteOffset?: number,
            length?: number,
        ): Uint8ClampedArray<TArrayBuffer>;
        new Uint8ClampedArrayConstructor(
            array: ArrayBuffer | ArrayLike<number>,
        ): Uint8ClampedArray<ArrayBuffer>;
        new Uint8ClampedArrayConstructor(
            elements: Iterable<number>,
        ): Uint8ClampedArray<ArrayBuffer>;
        new Uint8ClampedArrayConstructor(): Uint8ClampedArray<ArrayBuffer>;
        BYTES_PER_ELEMENT: number;
        prototype: Uint8ClampedArray;
        from(arrayLike: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
        from<T>(
            arrayLike: ArrayLike<T>,
            mapfn: (v: T, k: number) => number,
            thisArg?: any,
        ): Uint8ClampedArray<ArrayBuffer>;
        from(arrayLike: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
        from<T>(
            arrayLike: Iterable<T>,
            mapfn?: (v: T, k: number) => number,
            thisArg?: any,
        ): Uint8ClampedArray<ArrayBuffer>;
        of(...items: number[]): Uint8ClampedArray<ArrayBuffer>;
    }

    Constructors

    Properties

    Methods

    Constructors

    Properties

    BYTES_PER_ELEMENT: number

    The size in bytes of each element in the array.

    Methods