Skip to content

Conversation

@mfulton26
Copy link
Contributor

Fixes #43900

like `MapConstructor`, `WeakMapConstructor` should support receiving `Iterable<readonly [K, V]>` instead of `Iterable<[K, V]>`; otherwise tuples creates with `as const`, etc. cannot be safely passed in without casts, etc.
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Apr 30, 2021
@sandersn
Copy link
Member

sandersn commented May 7, 2021

Let's merge this after the 4.3 RC goes out, so it'll be in 4.4.

@sandersn sandersn merged commit 7901f35 into microsoft:master May 20, 2021
@mfulton26 mfulton26 deleted the patch-1 branch May 20, 2021 14:36
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

WeakMapConstructor: readonly iterable elements

4 participants