Skip to content
Myr

Replace {any} with {*} as native JSDoc (#2015)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent 14edbca · Browse files · 3 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:lib/argument.js+1 added-1 removed
modified:lib/command.js+1 added-1 removed
517 unmodified lines
518 * Wrap parseArgs to catch 'commander.invalidArgument'.519 *520 * @param {Option | Argument} target521 * @param {string} value522 * @param {any} previous522 * @param {*} previous523 * @param {string} invalidArgumentMessage524 * @api private525 */526
1655 unmodified lines
modified:lib/option.js+3 added-3 removed
38 unmodified lines
3940 /**41 * Set the default value, and optionally supply the description to be displayed in the help.42 *43 * @param {any} value43 * @param {*} value44 * @param {string} [description]45 * @return {Option}46 */47
10 unmodified lines
58 * @example59 * new Option('--color').default('GREYSCALE').preset('RGB');60 * new Option('--donate [amount]').preset('20').argParser(parseFloat);61 *62 * @param {any} arg62 * @param {*} arg63 * @return {Option}64 */6566 preset(arg) {
207 unmodified lines
274275 /**276 * Did the value come from the option, and not from possible matching dual option?277 *278 * @param {any} value278 * @param {*} value279 * @param {Option} option280 * @returns {boolean}281 */282 valueFromOption(value, option) {
49 unmodified lines