tsc with allowJs reports TS9005 error for nested anonymous constructor functions #57523
Labels
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
🔎 Search Terms
TS9005: Declaration emit for this file requires using private name '(Anonymous function)'. An explicit type annotation may unblock declaration emit.
🕗 Version & Regression Information
Related to #55172
When 2 separate nested
this
bindings are used within constructor functions, the following error's returned always at the top of the file (this was really annoying to debug 😅)⏯ Playground Link
https://tsplay.dev/NV57Gw
💻 Code
🙁 Actual behavior
Complains
🙂 Expected behavior
Shouldn't complain
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: