Can't augment function overload is function is exported via export {}
#58756
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
🔎 Search Terms
TS2383, function overload, module augmentation
🕗 Version & Regression Information
⏯ Playground Link
https://github.com/eps1lon/tsc-augment-overload
💻 Code
🙁 Actual behavior
🙂 Expected behavior
No error since the module augmentation seems to have worked.
Additional information about the issue
As a workaround, we can switch to
though this seems like TypeScript is enforcing a certain code style. Some teams prefer writing a single
export {}
statement.The text was updated successfully, but these errors were encountered: