Handle nested properties in JSDoc @typedef #20078
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
TypeScript Version: 2.7.0-dev.20171116
Code
Expected behavior: No error.
Actual behavior: Error. TypeScript treats the above typedef as defining something like this:
When what we really want is this:
The
@property {type} parent.nestedProp
syntax can be found here (http://usejsdoc.org/tags-property.html). TypeScript currently supports a similar syntax when used with@param
but not with@property
.The text was updated successfully, but these errors were encountered: