File tree Expand file tree Collapse file tree
changelog_unreleased/typescript Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44``` tsx
55// Input
66interface 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)
2620interface 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)
4634interface 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`)
6446interface 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;
You can’t perform that action at this time.
0 commit comments