Optionality not honored using @property tags #15916
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
Courtesy of @MikeyBurkman, reported in #11597 (comment)
That call to foo() will be flagged because it's missing
y
in the opts. The type checker does not recognize any of the methods of specifying optional parameters listed on the wiki. I even tried doing TS-style using@property {string?} y
and still no luck.The text was updated successfully, but these errors were encountered: