Back to Prettier

18929

changelog_unreleased/flow/18929.md

3.9.0372 B
Original Source

Support literal initializers and multiple declarations in DeclareVariable (#18929 by @fisker)

<!-- prettier-ignore -->
flow
// Input
declare const x: string, y: number;
declare const s = 'foo';

// Prettier stable
SyntaxError: Unexpected token `,`, expected the token `;` (1:24)

// Prettier main
declare const x: string, y: number;
declare const s = "foo";