Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Formatter: TS Intersection & Union types #3162 #3205

Closed
wants to merge 0 commits into from

Conversation

denbezrukov
Copy link
Contributor

Summary

Fix #3162 for TS Union.

Prettier: https://github.com/prettier/prettier/blob/cd3e530c2e51fb8296c0fb7738a9afdd3a3a4410/src/language-js/print/type-annotation.js#L123-L202

Test Plan

Current:
Average compatibility: 86.00
Compatible lines: 84.91

Main:
Average compatibility: 85.67
Compatible lines: 84.09

New test cases union_type.ts
cargo test --package rome_js_formatter

@netlify
Copy link

netlify bot commented Sep 12, 2022

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit 28e5351
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/631f5fac297daa0008a410e8
😎 Deploy Preview https://deploy-preview-3205--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatter: TS Intersection & Union types
2 participants