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:
parent
d768ed83b6
commit
3d15c2409d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue