Skip to content

Commit

Permalink
fix(yargs): remove onFinishCommand
Browse files Browse the repository at this point in the history
This function was removed by yargs/yargs#1823 (according to yargs/yargs#1947).
  • Loading branch information
abesto committed May 4, 2024
1 parent a099bef commit 586eb90
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions types/yargs/index.d.ts
Expand Up @@ -472,12 +472,6 @@ declare namespace yargs {
number<K extends keyof T>(key: K | readonly K[]): Argv<Omit<T, K> & { [key in K]: ToNumber<T[key]> }>;
number<K extends string>(key: K | readonly K[]): Argv<T & { [key in K]: number | undefined }>;

/**
* Method to execute when a command finishes successfully.
* @param func Is called with the successful result of the command that finished.
*/
onFinishCommand(func: (result: any) => void): Argv<T>;

/**
* This method can be used to make yargs aware of options that could exist.
* You can also pass an opt object which can hold further customization, like `.alias()`, `.demandOption()` etc. for that option.
Expand Down

0 comments on commit 586eb90

Please sign in to comment.