Files
test-repo/changelog_unreleased/flow/19398-2.md
T
3613b1e5a3 Add blog post for v3.9 (#19414)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-27 18:28:48 +08:00

393 B

Preserve Flow comment syntax (#19398 by @SamChou19815)

Preserves Flow comment syntax annotations instead of printing them as regular Flow syntax.

// Input
function foo<T>(bar /*: T[] */, baz /*: T */) /*: S */ {}

// Prettier stable
function foo<T>(bar: T[], baz: T): S {}

// Prettier main
function foo<T>(bar /*: T[] */, baz /*: T */) /*: S */ {}