Skip to content

Commit

Permalink
Remove stale argumentRejected method on Option (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Sep 10, 2021
1 parent b84534b commit 4a370a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ export class Option {
*/
hideHelp(hide?: boolean): this;

/**
* Validation of option argument failed.
* Intended for use from custom argument processing functions.
*/
argumentRejected(messsage: string): never;

/**
* Only allow option value to be one of choices.
*/
Expand Down
3 changes: 0 additions & 3 deletions typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,6 @@ expectType<commander.Option>(baseOption.hideHelp());
expectType<commander.Option>(baseOption.hideHelp(true));
expectType<commander.Option>(baseOption.hideHelp(false));

// argumentRejected
expectType<never>(baseOption.argumentRejected('failed'));

// choices
expectType<commander.Option>(baseOption.choices(['a', 'b']));

Expand Down

0 comments on commit 4a370a4

Please sign in to comment.