Skip to content

Commit 26a34e6

Browse files
authored
Replace {any} with {*} as native JSDoc (#2015)
1 parent 14edbca commit 26a34e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/argument.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Argument {
6666
/**
6767
* Set the default value, and optionally supply the description to be displayed in the help.
6868
*
69-
* @param {any} value
69+
* @param {*} value
7070
* @param {string} [description]
7171
* @return {Argument}
7272
*/

lib/command.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
519519
*
520520
* @param {Option | Argument} target
521521
* @param {string} value
522-
* @param {any} previous
522+
* @param {*} previous
523523
* @param {string} invalidArgumentMessage
524524
* @api private
525525
*/

lib/option.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Option {
4040
/**
4141
* Set the default value, and optionally supply the description to be displayed in the help.
4242
*
43-
* @param {any} value
43+
* @param {*} value
4444
* @param {string} [description]
4545
* @return {Option}
4646
*/
@@ -59,7 +59,7 @@ class Option {
5959
* new Option('--color').default('GREYSCALE').preset('RGB');
6060
* new Option('--donate [amount]').preset('20').argParser(parseFloat);
6161
*
62-
* @param {any} arg
62+
* @param {*} arg
6363
* @return {Option}
6464
*/
6565

@@ -275,7 +275,7 @@ class DualOptions {
275275
/**
276276
* Did the value come from the option, and not from possible matching dual option?
277277
*
278-
* @param {any} value
278+
* @param {*} value
279279
* @param {Option} option
280280
* @returns {boolean}
281281
*/

0 commit comments

Comments
 (0)