prettier/tests/typescript_conditional_types
Georgii Dolzhykov 977b828666 Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605)
* get rid of TSParenthesizedType nodes before proceeding with formatting

* fix parens for TSIndexedAccessType, TSFunctionType, TSConditionalType

fixes #6603

* workaround edge cases with one-item unions and intersections

* fix parens for TSInferType

* fix parens for rest elements in tuple types

* refactoring

* fix function types in conditional types

* move tests for rest and optional tuple elements

* fix comment issues

* tests for unions and intersections

* add parens around multiline unions in tuple

* move the parens check for TS nodes closer to the one for Flow nodes

* update CHANGELOG.unreleased.md

* remove dead code

* fix parens for TSConstructorType

* better wording in CHANGELOG.unreleased.md
2019-10-14 15:00:21 +03:00
..
__snapshots__ Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
conditonal-types.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
infer-type.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
jsfmt.spec.js feat(typescript): Support conditional types (#4007) 2018-02-23 12:34:23 -07:00