Skip to content

Conversation

Andarist
Copy link
Contributor

closes #48729

I've noticed that this already works in nightly and narrowed it down to 4.7.0-dev.20220406, see the playground.

Then I was able to bisect this to 7da80d7 introduced by #48112 . I think that the improvement comes from refactoring common parenthesizeMemberOfConditionalType into specialized functions like parenthesizeCheckTypeOfConditionalType & co.

I didn't see any specific test case added/adjusted in this PR that would be specific to this situation so I've decided to add one, cc @rbuckton

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Apr 25, 2022
@DanielRosenwasser DanielRosenwasser merged commit 9469f95 into microsoft:main May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript Quick Info Formatter Removes parentheses () from declared type on hovering, for conditionally inferring types
3 participants