Skip to content

Commit

Permalink
fix: action can return an async function
Browse files Browse the repository at this point in the history
Since we can use `parseAsync` for async functions so the action can be asynchronous.

related to tj#806
  • Loading branch information
prokopsimek authored Jan 29, 2020
1 parent f31d757 commit f8bbe37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ declare namespace commander {
*
* @returns Command for chaining
*/
action(fn: (...args: any[]) => void): Command;
action(fn: (...args: any[]) => void | Promise<void>): Command;

/**
* Define option with `flags`, `description` and optional
Expand Down

0 comments on commit f8bbe37

Please sign in to comment.