diff --git a/typings/index.d.ts b/typings/index.d.ts index 9f3d8dff8..da6343de8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -276,6 +276,7 @@ export class Command { args: string[]; processedArgs: any[]; commands: Command[]; + options: Option[]; parent: Command | null; constructor(name?: string); diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index 94c0b53d1..f641f20b2 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -29,6 +29,7 @@ expectType(program.args); // eslint-disable-next-line @typescript-eslint/no-explicit-any expectType(program.processedArgs); expectType(program.commands); +expectType(program.options); expectType(program.parent); // version