Skip to content

Commit

Permalink
Replace {any} with {*} as native JSDoc (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Sep 14, 2023
1 parent 14edbca commit 26a34e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/argument.js
Expand Up @@ -66,7 +66,7 @@ class Argument {
/**
* Set the default value, and optionally supply the description to be displayed in the help.
*
* @param {any} value
* @param {*} value
* @param {string} [description]
* @return {Argument}
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js
Expand Up @@ -519,7 +519,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
*
* @param {Option | Argument} target
* @param {string} value
* @param {any} previous
* @param {*} previous
* @param {string} invalidArgumentMessage
* @api private
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/option.js
Expand Up @@ -40,7 +40,7 @@ class Option {
/**
* Set the default value, and optionally supply the description to be displayed in the help.
*
* @param {any} value
* @param {*} value
* @param {string} [description]
* @return {Option}
*/
Expand All @@ -59,7 +59,7 @@ class Option {
* new Option('--color').default('GREYSCALE').preset('RGB');
* new Option('--donate [amount]').preset('20').argParser(parseFloat);
*
* @param {any} arg
* @param {*} arg
* @return {Option}
*/

Expand Down Expand Up @@ -275,7 +275,7 @@ class DualOptions {
/**
* Did the value come from the option, and not from possible matching dual option?
*
* @param {any} value
* @param {*} value
* @param {Option} option
* @returns {boolean}
*/
Expand Down

0 comments on commit 26a34e6

Please sign in to comment.