@overload
doesn't work for constructors
#52477
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
🔎 Search Terms
"jsdoc overload"
"constructor overload jsdoc"
"overload jsdoc example"
🕗 Version & Regression Information
I've only just tried using this feature. Specifically based on the recent merged PR #51234 which is intended to fix #25590
⏯ Playground Link
Playground link with relevant code
screenshot of playground
💻 Code
🙁 Actual behavior
Code hints are not indicating the presence of overloads, and type checking does not seem to be applied correctly based on parameter combination.
🙂 Expected behavior
While instantiating the class I would expect to see the "up/down" arrows in the code hint that indicates presence of overloads (and allows cycling through the hints for the various overloads). I would also expect type checking to be applied properly.
The text was updated successfully, but these errors were encountered: