Skip to content

Commit

Permalink
Remove unimplemented fullDescription from TypeScript (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored May 4, 2024
1 parent c749eb8 commit d3b48f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ export class Option {
*/
env(name: string): this;

/**
* Calculate the full description, including defaultValue etc.
*/
fullDescription(): string;

/**
* Set the custom handler for processing CLI option arguments into option values.
*/
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 @@ -617,9 +617,6 @@ expectType<commander.Option>(baseOption.preset('abc'));
// env
expectType<commander.Option>(baseOption.env('PORT'));

// fullDescription
expectType<string>(baseOption.fullDescription());

// argParser
expectType<commander.Option>(
baseOption.argParser((value: string) => parseInt(value)),
Expand Down

0 comments on commit d3b48f7

Please sign in to comment.