From cab98179815ff45202d50e40d137b15f1ba73716 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 29 Aug 2022 19:42:11 -0300 Subject: [PATCH] expose options as readonly --- typings/index.d.ts | 1 + typings/index.test-d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index 9f3d8dff8..3e133db6d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -277,6 +277,7 @@ export class Command { processedArgs: any[]; commands: Command[]; parent: Command | null; + readonly options: ReadonlyArray>; constructor(name?: string); diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index 94c0b53d1..88312e527 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -30,6 +30,7 @@ expectType(program.args); expectType(program.processedArgs); expectType(program.commands); expectType(program.parent); +expectType>>(program.options); // version expectType(program.version('1.2.3'));