Open jgiles opened 10 years ago
We should add support for casting:
/** @type {Object} */ var genericObject; var castObject = /** @type {CastClass} */ (genericObject); castObject; //: CastClass
Right now, castObject has type {}.
castObject
{}
This will be tricky, since it will definitely involve changing the way we attach JSDoc comments to AST nodes.
We should add support for casting:
Right now,
castObject
has type{}
.This will be tricky, since it will definitely involve changing the way we attach JSDoc comments to AST nodes.