diff --git a/typings/index.d.ts b/typings/index.d.ts index 43eeae563..cba74f681 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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. */ diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index ba1051092..7ef3417ea 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -368,9 +368,6 @@ expectType(baseOption.hideHelp()); expectType(baseOption.hideHelp(true)); expectType(baseOption.hideHelp(false)); -// argumentRejected -expectType(baseOption.argumentRejected('failed')); - // choices expectType(baseOption.choices(['a', 'b']));