JSDoc Allow {}
around typecasts/declarations to be optional
#19987
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.201xxxxx
Code
Expected behavior:
object
cast tofunction(new:Object)
Actual behavior:
(Parse error on
function
keyword)We've seen this before (and crashed on it), but choose not to make it not an error because it seemed wrong; however a lot of code that validates under closure compiler (namely the chrome devtools) appears to be written like this.
The text was updated successfully, but these errors were encountered: