Skip to content

fix: paren shouldn't be removed from infer func #13289

Merged
thorn0 merged 4 commits intoprettier:mainfrom
GlebDolzhikov:13275
Aug 17, 2022
Merged

fix: paren shouldn't be removed from infer func #13289
thorn0 merged 4 commits intoprettier:mainfrom
GlebDolzhikov:13275

Conversation

@GlebDolzhikov
Copy link
Copy Markdown
Contributor

@GlebDolzhikov GlebDolzhikov commented Aug 15, 2022

Description

Parentheses shouldn't be removed from inferred function return types with extends constraints
fix for #13275

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

Comment thread tests/format/typescript/conditional-types/__snapshots__/jsfmt.spec.js.snap Outdated
@thorn0 thorn0 merged commit f2244bd into prettier:main Aug 17, 2022
@kachkaev kachkaev added this to the 2.8 milestone Nov 16, 2022
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Jan 4, 2024
reflect1on1337 added a commit to reflect1on1337/prettier that referenced this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parentheses shouldn't be removed from inferred function return types with extends constraints

5 participants