Skip to content

Conversation

typescript-bot
Copy link
Collaborator

This cherry-pick was triggered by a request on #53207
Please review the diff and merge if no changes are unexpected.
You can view the cherry-pick log here.

cc @jakebailey

Component commits:
dab0d38 Fixed symbol declarations for generic filtering mapped types

681f8bc reuse the added mappedType variable in one more place
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Mar 15, 2023
@jakebailey jakebailey added this to the TypeScript 5.0.3 milestone Mar 15, 2023
Comment on lines +13183 to +13184
const nameType = getNameTypeFromMappedType(mappedType);
const shouldLinkPropDeclarations = !nameType || isFilteringMappedType(mappedType);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wasn't nameType just passed in?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to balance the reusability of this helper since it’s now used in two (?) places and i have a PR that wants to use it in another one: 10a9bb6

Not every call site has independent access to this

@DanielRosenwasser DanielRosenwasser merged commit 111df34 into microsoft:release-5.0 Mar 28, 2023
drivron pushed a commit to scenari/typescript that referenced this pull request Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants