Skip to content

Commit 3d15c24

Browse files
bartolkaruzajonathanong
authored andcommittedMar 12, 2016
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
1 parent d768ed8 commit 3d15c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/response.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ module.exports = {
248248
* this.redirect('http://google.com');
249249
*
250250
* @param {String} url
251-
* @param {String} alt
251+
* @param {String} [alt]
252252
* @api public
253253
*/
254254

0 commit comments

Comments
 (0)
Please sign in to comment.