Skip to content

Big(Int|Uint)64ArrayConstructor: missing from Iterable #45198

Closed

Description

lib Update Request

Configuration Check

My compilation target is ESNext and my lib is the default.

Missing / Incorrect Definition

BigInt64Array.from is missing an iterable overload (same for BigUint64Array).

Sample Code

console.log(
  Int32Array.from(new Set([1, 2, 3]), (value) => value ** 2).join(", ")
);
console.log(
  BigInt64Array.from(new Set([1n, 2n, 3n]), (value) => value ** 2n).join(", ")
);
Argument of type 'Set<bigint>' is not assignable to parameter of type 'ArrayLike<unknown>'.
  Property 'length' is missing in type 'Set<bigint>' but required in type 'ArrayLike<unknown>'.

Documentation Link

TypedArray.from() - JavaScript | MDN

Activity

  1. added
    Domain: lib.d.ts
    on Aug 4, 2021
  2. added
    Rescheduled
    on Dec 15, 2021
  3. added
    Fix Available
    on Dec 31, 2021
  4. added 4 commits that reference this issue on Jul 9, 2024
    1b2a0c0
    a6c56ef
    67e122f
    49d6fbf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Domain: lib.d.tsFix AvailableRescheduled

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy