Skip to content
Myr

Remove stale argumentRejected method on Option (#1599)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent b84534b · Browse files · 2 files+0 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+0 added−9 removed

  • other:+0 added−9 removed

2 files+0 added−9 removed

modified:typings/index.d.ts-6 removed
124 unmodified lines
125 */126 hideHelp(hide?: boolean): this;127128 /**129 * Validation of option argument failed.130 * Intended for use from custom argument processing functions.131 */132 argumentRejected(messsage: string): never;133134 /**129 * Only allow option value to be one of choices.130 */131 choices(values: string[]): this;132
631 unmodified lines
modified:typings/index.test-d.ts-3 removed
366 unmodified lines
367expectType<commander.Option>(baseOption.hideHelp());368expectType<commander.Option>(baseOption.hideHelp(true));369expectType<commander.Option>(baseOption.hideHelp(false));370371// argumentRejected372expectType<never>(baseOption.argumentRejected('failed'));373371// choices372expectType<commander.Option>(baseOption.choices(['a', 'b']));373374// name
36 unmodified lines