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
/**
* Returns the sum of all numbers passed to the function.
* @param {...number} num - A positive or negative number.
*/
function sum(num) {
var i = 0, n = arguments.length, t = 0;
for (; i < n; i++) {
t += arguments[i];
}
return t;
}
from http://usejsdoc.org/tags-param.html you will get "Invalid JsDoc type definition" for the @param. It looks like the varargs syntax is not recognized.
The text was updated successfully, but these errors were encountered:
/** * ... * @param {function} callback function to call after the delay * @param {number} delay delay in ms * @param {...*} args arbitrary arguments for the callback function */setTimeout(callback,delay)
At the moment, this results in a "jsDoc: redundant param statement" error.
FWIW, jsdoc does render this nicely.
Given:
from http://usejsdoc.org/tags-param.html you will get "Invalid JsDoc type definition" for the
@param
. It looks like the varargs syntax is not recognized.The text was updated successfully, but these errors were encountered: