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 d768ed83b6
commit 3d15c2409d

View file

@ -248,7 +248,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
*/ */