Skip to content

Conversation

@weswigham
Copy link
Member

Since #12351 we've been checking getConstraintTypeFromMappedType(target) === getIndexType(source) - the rule is in reality able to be relaxed a bit more than that. It's acceptable for the source to have more keys than the target, so long as it still provides for every key in target (and that S is still assignable to T's template).

Fixes #27484

@weswigham weswigham merged commit 3a2f7c0 into microsoft:master Oct 31, 2018
@weswigham weswigham deleted the homomorphic-intersections branch October 31, 2018 21:09
weswigham added a commit to weswigham/TypeScript that referenced this pull request Nov 6, 2018
weswigham added a commit that referenced this pull request Nov 6, 2018
ghost pushed a commit that referenced this pull request Nov 7, 2018
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants