Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 const declaration w/o init in a TS declaration file trigger a parse error #1981

Closed
1 task done
Conaclos opened this issue Mar 6, 2024 · 1 comment · Fixed by #1991
Closed
1 task done

🐛 const declaration w/o init in a TS declaration file trigger a parse error #1981

Conaclos opened this issue Mar 6, 2024 · 1 comment · Fixed by #1991
Labels
A-Parser Area: parser L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@Conaclos
Copy link
Member

Conaclos commented Mar 6, 2024

Environment information

Playground

What happened?

const declaration without initialization in a TypeScript declaration file (.d.ts) are no longer allowed: they trigger a parsing error Const declarations must have an initialized value..

Playground

Expected result

const declaration without initialization should be allowed in TypeScript declaration files

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Parser Area: parser L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Mar 6, 2024
@ah-yu
Copy link
Contributor

ah-yu commented Mar 7, 2024

It seems that the parser is functioning properly, this appears to be an issue related to the playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Parser Area: parser L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants