Skip to content

Consider parenthesized expressions with JSDoc to be a form of type assertions #5158

@DanielRosenwasser

Description

@DanielRosenwasser

To quote @weswigham on #4447 (comment):

in [the] closure compiler you do inline casts with jsdoc comments like so:

var x = /** @type {Foo.Bar} */ (y);

We should consider supporting this in Salsa.

Metadata

Metadata

Labels

Domain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions