When writing javascript for use with the Closure compiler, parenthesis directly following a type annotation comment have meaning.
Type cast precede a parenthesized expression.
var x = /** @type {string} */ (fruit);
prettier outputs:
var x /** @type {string} */ = fruit;
When writing javascript for use with the Closure compiler, parenthesis directly following a type annotation comment have meaning.
Type cast precede a parenthesized expression.
prettier outputs: