JSDoc question/suggestion on optional parameters

Hi, Webstorm keeps giving me warnings on the 'redirect' method, because the JSDoc specified two input parameters, both required. There is a JSDoc standard for optional parameters. What is your view on using these in KOA documentation?
http://usejsdoc.org/tags-param.html#optional-parameters-and-default-values

closes #661
This commit is contained in:
Bartol Karuza 2016-02-22 11:33:08 +01:00 committed by Jonathan Ong
parent 97c34d1905
commit 229641127a

View file

@ -247,7 +247,7 @@ module.exports = {
* this.redirect('http://google.com'); * this.redirect('http://google.com');
* *
* @param {String} url * @param {String} url
* @param {String} alt * @param {String} [alt]
* @api public * @api public
*/ */