From 26a34e6142c4d7cdce71d8152ebf9ae934d86787 Mon Sep 17 00:00:00 2001 From: John Gee Date: Fri, 15 Sep 2023 08:44:40 +1200 Subject: [PATCH] Replace {any} with {*} as native JSDoc (#2015) --- lib/argument.js | 2 +- lib/command.js | 2 +- lib/option.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/argument.js b/lib/argument.js index c16430250..a51836200 100644 --- a/lib/argument.js +++ b/lib/argument.js @@ -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} */ diff --git a/lib/command.js b/lib/command.js index 9cdbb25f1..f6d47b447 100644 --- a/lib/command.js +++ b/lib/command.js @@ -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 */ diff --git a/lib/option.js b/lib/option.js index d61fc5f2f..36968b026 100644 --- a/lib/option.js +++ b/lib/option.js @@ -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} */ @@ -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} */ @@ -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} */