[ID-Prep] Explicit type annotation of const replaced with initializer in declaration emit #57442
Labels
Domain: Isolated Declarations
Related to the --isolatedDeclarations compiler flag
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
The [ID-prep] set of issues aligns Declaration Emit with the forthcoming Isolated Declarations feature.
🔎 Search Terms
declarations type annotation const not preserved
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
e
is emitted in declarations asdeclare const e = E["some value"];
🙂 Expected behavior
e
should have in declarations the type that was manually declaredAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: