fix(rome_js_formatter): Union in mapped type
MODIFY
crates/rome_js_formatter/src/ts/types/union_type.rs
crates/rome_js_formatter/src/ts/types/union_type.rs
@@ -53,6 +53,7 @@ impl FormatNodeRule<TsUnionType> for FormatTsUnionType {
| JsSyntaxKind::TS_TUPLE_TYPE_ELEMENT_LIST
| JsSyntaxKind::TS_TYPE_ASSERTION_ASSIGNMENT
| JsSyntaxKind::TS_TYPE_ARGUMENT_LIST
+ | JsSyntaxKind::TS_MAPPED_TYPE
)
)
}

MODIFY
crates/rome_js_formatter/tests/specs/ts/type/union_type.ts.snap
crates/rome_js_formatter/tests/specs/ts/type/union_type.ts.snap
---
source: crates/rome_formatter_test/src/snapshot_builder.rs
-info:
- test_file: ts/type/union_type.ts
+info: "ts\\type\\union_type.ts"
---
# Input
@@ -253,6 +252,7 @@ type SuperLongTypeNameLoremIpsumLoremIpsumBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla =
| Fooo1000
| Baz2000
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
+
```

fix(rome_js_formatter): Union in mapped type (#4100)