Skip to content
Myr

Fix version() parameter type

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

Borrowed from a3f0e28 that was supposed to land in the now-closed #1921.

authored by Wee Bit · committed by Abe Tomoaki · parent 68a4276 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:lib/command.js+1 added-1 removed
1805 unmodified lines
1806 * which will print the version number when passed.1807 *1808 * You can optionally supply the flags and description to override the defaults.1809 *1810 * @param {string} str1810 * @param {string} [str]1811 * @param {string} [flags]1812 * @param {string} [description]1813 * @return {this | string} `this` command for chaining, or version string if no arguments1814 */
382 unmodified lines
modified:typings/index.d.ts+1 added-1 removed
291 unmodified lines
292 * which will print the version number when passed.293 *294 * You can optionally supply the flags and description to override the defaults.295 */296 version(str: string, flags?: string, description?: string): this;296 version(str?: string, flags?: string, description?: string): this;297298 /**299 * Define a command, implemented using an action handler.300 *
589 unmodified lines