JSDoc @template
type parameters aren't resolved on prototype assignments
#24230
Labels
Bug
A bug in TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Fixed
A PR has been merged for this issue
Milestone
Expected behavior:
K
andV
are resolved to the declaration onvar Multimap = function ...
.Actual behavior:
Cannot find name 'K'. and Cannot find name 'V'.
The js-specific code in resolveEntityName needs to understand prototype assignment the same way that it does prototype property assignment. This works fine:
The text was updated successfully, but these errors were encountered: