Skip to content

Commit 6a698ee

Browse files
committed
Simplify example
1 parent 063d8db commit 6a698ee

1 file changed

Lines changed: 15 additions & 39 deletions

File tree

changelog_unreleased/typescript/18110.md

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,76 +4,52 @@
44
```tsx
55
// Input
66
interface A {
7-
property: // Comment
8-
B
9-
}
10-
11-
interface B {
12-
elements: // Comment
7+
a: // Comment
8+
B;
9+
b: // Comment
1310
| Fooo1000
1411
| Baz2000
15-
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong
16-
}
17-
18-
interface C {
19-
elements: // Comment
12+
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
13+
c: // Comment
2014
& Fooo1000
2115
& Baz2000
22-
& BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong
16+
& BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
2317
}
2418

2519
// Prettier stable (--parser=typescript)
2620
interface A {
27-
property: // Comment
21+
a: // Comment
2822
B;
29-
}
30-
31-
interface B {
32-
elements: // Comment
23+
b: // Comment
3324
| Fooo1000
3425
| Baz2000
3526
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
36-
}
37-
38-
interface C {
39-
elements: // Comment
27+
c: // Comment
4028
Fooo1000 &
4129
Baz2000 &
4230
BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
4331
}
4432

4533
// Prettier stable (--parser=flow)
4634
interface A {
47-
property: B; // Comment
48-
}
49-
50-
interface B {
51-
elements: // Comment
35+
a: B; // Comment
36+
b: // Comment
5237
| Fooo1000
5338
| Baz2000
5439
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
55-
}
56-
57-
interface C {
58-
elements: Fooo1000 & // Comment
40+
c: Fooo1000 & // Comment
5941
Baz2000 &
6042
BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
6143
}
6244

6345
// Prettier main (Same output for `--parser=typescript` and `--parser=flow`)
6446
interface A {
65-
property: B; // Comment
66-
}
67-
68-
interface B {
69-
elements: // Comment
47+
a: B; // Comment
48+
b: // Comment
7049
| Fooo1000
7150
| Baz2000
7251
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
73-
}
74-
75-
interface C {
76-
elements: // Comment
52+
c: // Comment
7753
Fooo1000 &
7854
Baz2000 &
7955
BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;

0 commit comments

Comments
 (0)