Don't treat Flow inexact tuples as empty (#18616)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-13 19:15:36 +08:00
1 parent 09ce948ee3
commit 3b9ecca4d9
4 files changed
+127 -18

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#### Improve comment format in inexact tuples (#18616 by @fisker)
<!-- prettier-ignore -->
```jsx
// Input
type A = [// comment
...];
type B = [/* comment */...];
// Prettier stable
type A = [...
// comment
];
type B = [...
/* comment */
];
// Prettier main
type A = [
...// comment
];
type B = [.../* comment */];
```