File tree 2 files changed +0
-9
lines changed
2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,6 @@ export class Option {
125
125
*/
126
126
hideHelp ( hide ?: boolean ) : this;
127
127
128
- /**
129
- * Validation of option argument failed.
130
- * Intended for use from custom argument processing functions.
131
- */
132
- argumentRejected ( messsage : string ) : never ;
133
-
134
128
/**
135
129
* Only allow option value to be one of choices.
136
130
*/
Original file line number Diff line number Diff line change @@ -368,9 +368,6 @@ expectType<commander.Option>(baseOption.hideHelp());
368
368
expectType < commander . Option > ( baseOption . hideHelp ( true ) ) ;
369
369
expectType < commander . Option > ( baseOption . hideHelp ( false ) ) ;
370
370
371
- // argumentRejected
372
- expectType < never > ( baseOption . argumentRejected ( 'failed' ) ) ;
373
-
374
371
// choices
375
372
expectType < commander . Option > ( baseOption . choices ( [ 'a' , 'b' ] ) ) ;
376
373
You can’t perform that action at this time.
0 commit comments