You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This syntax requires the expression to cast must be enclosed in parenthesis, and the jsdoc comment must be the first comment inside of the parenthesis. This is because it would be fairly expensive (in terms of both time and storage) to scan for jsdoc comments for every expression. This restriction would allow us to significantly reduce the overhead necessary to support this feature.
The text was updated successfully, but these errors were encountered:
Original discussion
This suggestion proposes we allow a new prefix cast syntax using
/** @type {...} */
, e.g.:This syntax requires the expression to cast must be enclosed in parenthesis, and the jsdoc comment must be the first comment inside of the parenthesis. This is because it would be fairly expensive (in terms of both time and storage) to scan for jsdoc comments for every expression. This restriction would allow us to significantly reduce the overhead necessary to support this feature.
The text was updated successfully, but these errors were encountered: