Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
373 B
373 B
Support literal initializers and multiple declarations in DeclareVariable (#18929 by @fisker)
// 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";