We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948796d commit e12ea2eCopy full SHA for e12ea2e
typings/index.d.ts
@@ -156,8 +156,8 @@ declare namespace commander {
156
157
interface Command {
158
args: string[];
159
-
160
commands: Command[];
+ parent: Command | null;
161
162
/**
163
* Set the program version to `str`.
typings/index.test-d.ts
@@ -21,6 +21,7 @@ expectType<commander.Command>(commander.createCommand());
21
// Command properties
22
expectType<string[]>(program.args);
23
expectType<commander.Command[]>(program.commands);
24
+expectType<commander.Command | null>(program.parent);
25
26
// version
27
expectType<commander.Command>(program.version('1.2.3'));
0 commit comments