Keep comment on the same line in property signature (#19688)

This commit is contained in:
Konv Suu authored and GitHub committed 2026-07-22 18:10:36 +08:00
1 parent 5a763f1525
commit f5927d5199
7 files changed
+80 -21

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#### Keep comment on the same line in property signature (#19688 by @kovsu)
<!-- prettier-ignore -->
```tsx
// Input
interface A { property: /** Comment */
B }
// Prettier stable
interface A {
property: /** Comment */
B;
}
// Prettier main
interface A {
property: /** Comment */ B;
}
```