Emit bug: default export is missing when exporting type+named+default #43359
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
When using a single identifier to export three things (a type, a named export, and a default export) the default export is dropped from the emitted JS.
🔎 Search Terms
"default export" skipped dropped elided omitted forgotten "JS emit" type "named export" "JS+types"
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
The problem is equally replicable with
interface
and object types.🙁 Actual behavior
JS semantics are not preserved in the JS emit:
🙂 Expected behavior
Credit
This bug was discovered by @ollupac
The text was updated successfully, but these errors were encountered: