mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-13 09:12:52 -05:00
Corrected the fix to only allow synthetic defaults when re-exporting from declaration files (not TypeScript source files). This aligns with the issue description which states that declaration files may correspond to CommonJS modules at runtime where a default import can reference the whole module.exports symbol. Only tests targeting .d.ts files should pass without errors: - reexportMissingDefault4.ts (targets b.d.ts) ✓ - reexportMissingDefault5.ts (targets b.d.ts) ✓ Tests targeting .ts files correctly maintain their errors: - reexportMissingDefault.ts, 1, 2, 3, 6, 7 (all target b.ts) Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>