File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change @@ -368,9 +368,6 @@ expectType<commander.Option>(baseOption.hideHelp());
368368expectType < commander . Option > ( baseOption . hideHelp ( true ) ) ;
369369expectType < commander . Option > ( baseOption . hideHelp ( false ) ) ;
370370
371- // argumentRejected
372- expectType < never > ( baseOption . argumentRejected ( 'failed' ) ) ;
373-
374371// choices
375372expectType < commander . Option > ( baseOption . choices ( [ 'a' , 'b' ] ) ) ;
376373
You can’t perform that action at this time.
0 commit comments