typedef tag is able to resolve type variables declared in same jsdoc comment #23740
Labels
Bug
A bug in TypeScript
checkJs
Relates to checking JavaScript using TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Fixed
A PR has been merged for this issue
Milestone
Typedef tags are supposed to be visible in the parent scope of the jsdoc comment they are attached to. That also means that they should not be able to see things in the same jsdoc comment that are supposed to be visible in the child scope, such as
@template
.Expected behavior:
n: T
andy: unknown
with an error on@type {N}
"Cannot resolve name 'N'."Actual behavior:
n: T
andy: T
and no error.The text was updated successfully, but these errors were encountered: