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
Using the Salsa work with @param tags works fine for function declarations, but not for assignments of function expressions. This is particularly a problem in the CommonJS case. For example with the module below, sub correctly shows the params as of type number, whereas add shows them as type any.
/** * @param {number} a The number to subtract from * @param {number} b The number to subtract */functionsub(a,b){returna-b;}exports.sub=sub;/** * @param {number} a - First term * @param {number} b - Second term */exports.add=function(a,b){returna+b;}
The JsDoc tags should apply to the resulting value of the expression.
The text was updated successfully, but these errors were encountered:
Using the Salsa work with
@param
tags works fine for function declarations, but not for assignments of function expressions. This is particularly a problem in the CommonJS case. For example with the module below,sub
correctly shows the params as of typenumber
, whereasadd
shows them as typeany
.The JsDoc tags should apply to the resulting value of the expression.
The text was updated successfully, but these errors were encountered: