Update flow-parser (#18929)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2026-03-22 10:53:42 +08:00
1 parent 79c0929b3b
commit 9d6833e74a
31 files changed
+194 -578

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#### 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";
```