Skip to content

Bit-TypedArray does not support bitOffset, length in constructor #1

Open
@zipzapzanigan

Description

@zipzapzanigan
> import BitArray from "@bitarray/typedarray"
undefined
> let d = new BitArray([0,1,1], 0, 10)
<repl>.ts:5:31 - error TS2554: Expected 1 arguments, but got 3.

BitArray doesn't seem to support both buffer, byteOffset and length in the constructor, as other TypedArrays do:

new TypedArray(buffer, byteOffset, length)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions