Skip to content

Commit

Permalink
fix(ts): action can be 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 committed Jan 29, 2020
1 parent d9627f5 commit 5444ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/index.d.ts
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 5444ace

Please sign in to comment.