Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
393 B
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 */ {}