🐛 const
declaration w/o init in a TS declaration file trigger a parse error
#1981
Closed
1 task done
Labels
A-Parser
Area: parser
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
const
declaration without initialization in a TypeScript declaration file (.d.ts
) are no longer allowed: they trigger a parsing errorConst declarations must have an initialized value.
.Playground
Expected result
const
declaration without initialization should be allowed in TypeScript declaration filesCode of Conduct
The text was updated successfully, but these errors were encountered: