Skip to content

Commit

Permalink
feat(typings): add help callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dubitabam authored and roman-vanesyan committed Aug 8, 2017
1 parent 5c74431 commit df86179
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions typings/index.d.ts
Expand Up @@ -255,12 +255,16 @@ declare class Command extends NodeJS.EventEmitter {
/**
* Output help information for this command.
*
* @param {() => void} [cb] Callback method
* @param {(str: string) => string} [cb] Callback method
*/
outputHelp(cb?: () => void): void;
outputHelp(cb?: (str: string) => string): void;

/** Output help information and exit. */
help(): void;
/**
* Output help information and exit.
*
* @param {(str: string) => string} [cb] Callback method
*/
help(cb?: (str: string) => string): void;
}

declare namespace commander {
Expand Down

0 comments on commit df86179

Please sign in to comment.