Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Should new Uint8Array(arr) take ReadonlyArray<number> ? #4302

Copy link
Copy link

Description

@mnsaglam
Issue body actions

Currently TypedArray constructors do not accept ReadonlyArray<number> even though the .from() static method only requires IArrayLike<number>. Here is the constructor and the static method for Uint8Array for instance. Is this intentional? Can we allow ReadonlyArray<number> in the constructor?

If this is consistent with the intended typing and design, I will send a PR.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.