In JS, type parameter from @type
JSDoc tag doesn't get instantiated
#25618
Labels
Milestone
@type
JSDoc tag doesn't get instantiated
#25618
TypeScript Version: 3.0.0-dev.20180712
Search Terms:
Code
Expected behavior:
Either
param
doesn't get it's type from the@type
tag or the type parameterT
applies to the function.Actual behavior:
Argument of type '1' is not assignable to parameter of type 'T | undefined'.
Playground Link: not possible
Related Issues: #25525
The text was updated successfully, but these errors were encountered: