Skip to content

Commit 4a370a4

Browse files
authored
Remove stale argumentRejected method on Option (#1599)
1 parent b84534b commit 4a370a4

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

typings/index.d.ts

-6
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,6 @@ export class Option {
125125
*/
126126
hideHelp(hide?: boolean): this;
127127

128-
/**
129-
* Validation of option argument failed.
130-
* Intended for use from custom argument processing functions.
131-
*/
132-
argumentRejected(messsage: string): never;
133-
134128
/**
135129
* Only allow option value to be one of choices.
136130
*/

typings/index.test-d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,6 @@ expectType<commander.Option>(baseOption.hideHelp());
368368
expectType<commander.Option>(baseOption.hideHelp(true));
369369
expectType<commander.Option>(baseOption.hideHelp(false));
370370

371-
// argumentRejected
372-
expectType<never>(baseOption.argumentRejected('failed'));
373-
374371
// choices
375372
expectType<commander.Option>(baseOption.choices(['a', 'b']));
376373

0 commit comments

Comments
 (0)