Skip to content

Commit

Permalink
Fix version() parameter type
Browse files Browse the repository at this point in the history
Borrowed from a3f0e28 that was supposed to land in the now-closed tj#1921.
  • Loading branch information
aweebit committed Aug 3, 2023
1 parent d038570 commit e8bea4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/command.js
Expand Up @@ -1807,7 +1807,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
*
* You can optionally supply the flags and description to override the defaults.
*
* @param {string} str
* @param {string} [str]
* @param {string} [flags]
* @param {string} [description]
* @return {this | string} `this` command for chaining, or version string if no arguments
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -293,7 +293,7 @@ export class Command {
*
* You can optionally supply the flags and description to override the defaults.
*/
version(str: string, flags?: string, description?: string): this;
version(str?: string, flags?: string, description?: string): this;

/**
* Define a command, implemented using an action handler.
Expand Down

0 comments on commit e8bea4a

Please sign in to comment.