Skip to content

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

@mfulton26

Description

@mfulton26

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

Metadata

Metadata

Assignees

Labels

Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFix AvailableA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions