Skip to content

Commit f3431d1

Browse files
aweebitabetomo
authored andcommitted
Revert "Fix version() parameter type"
This reverts commit e8bea4a.
1 parent 9c38a95 commit f3431d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
18091809
*
18101810
* You can optionally supply the flags and description to override the defaults.
18111811
*
1812-
* @param {string} [str]
1812+
* @param {string} str
18131813
* @param {string} [flags]
18141814
* @param {string} [description]
18151815
* @return {this | string} `this` command for chaining, or version string if no arguments

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class Command {
293293
*
294294
* You can optionally supply the flags and description to override the defaults.
295295
*/
296-
version(str?: string, flags?: string, description?: string): this;
296+
version(str: string, flags?: string, description?: string): this;
297297

298298
/**
299299
* Define a command, implemented using an action handler.

0 commit comments

Comments
 (0)