Support for "const
modifier on type parameters" with JSDoc
#56634
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
"const type parameter jsdoc", "const generic jsdoc", "const template jsdoc"
β Viability Checklist
β Suggestion
v5.0 added support for "
const
modifier on type parameters", but it is not supported with JSDoc@template
tag (or at least I couldn't make it work nor find any documentation about it).I propose adding support for the
const
prefix in the@template
:π Motivating Example
The same as "
const
modifier on type parameters" itself..π» Use Cases
...
...
I have to wrap the generic value with
/** @type {const} */(...)
every time I'm using the functionThe text was updated successfully, but these errors were encountered: