Files
test-repo/changelog_unreleased/graphql/15870.md
T
agajjarandfisker Cheung 5cae451c14 Improve GraphQL union types formatting (#15870)
* Fix:14234 added fix for formating graphql union type

* Fix:14234 clean up code and push the fix

* Fix:14234 added test cases

* Fix:14234 added changelog entry

* Fix:14234 cleanup changelog entry

* Fix:14234 cleanup changelog

* Update changelog_unreleased/graphql/15870.md

* Update changelog_unreleased/graphql/15870.md

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-01-07 22:49:39 +09:00

494 B

Improve GraphQL union types formatting (#15870 by @ArchitGajjar)

# Input
union SearchResult = Conference| Festival | Concert | Venue | Conference| Festival | Concert | Venue

# Prettier stable
union SearchResult =
    Conference
  | Festival
  | Concert
  | Venue
  | Conference
  | Festival
  | Concert
  | Venue

# Prettier main
union SearchResult =
  | Conference
  | Festival
  | Concert
  | Venue
  | Conference
  | Festival
  | Concert
  | Venue