JSDoc doesnt support generics correctly #56102
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
🔎 Search Terms
jsdoc generics
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
Given the following code:
When I consume the
api
function in a.js
file, I'd still like to leverage theT
generic via JSDoc-only. There currently isnt a straightforward way to do this, and the DX of this could definitely be improved.🙁 Actual behavior
Cant leverage the
T
generic🙂 Expected behavior
I can leverage the
T
genericAdditional information about the issue
This is a long overdue feature :)
The text was updated successfully, but these errors were encountered: