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
We should actually treat any@param/@return on a variable declaration as a type annotation. If we do that, I don't think that @function needs any special support.
#36633 requests this behaviour, and #31313 implies that it wants this behaviour for @class and several other tags.
Activity
mjbvz commentedon Feb 24, 2017
Also, the param name and param description from the jsdoc should override those from the
*.d.tsfile. For example, if the code were :For signature help on
thisDoesNot, we'd want to show the information provided by the jsdoc formyNewParamName[-]JSDoc Should Override type from d.ts in JavaScript files[/-][+]Support JSDoc `@function` [/+]sandersn commentedon Aug 25, 2020
We should actually treat any
@param/@returnon a variable declaration as a type annotation. If we do that, I don't think that@functionneeds any special support.#36633 requests this behaviour, and #31313 implies that it wants this behaviour for
@classand several other tags.