Skip to content

Commit

Permalink
Fix types (#804)
Browse files Browse the repository at this point in the history
* Command#opts type is { [key: string]: any }.
* Command#help's return type is never.
  • Loading branch information
blair authored and roman-vanesyan committed May 21, 2018
1 parent 001d560 commit 89edef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typings/index.d.ts
Expand Up @@ -218,9 +218,9 @@ declare namespace local {
/**
* Return an object containing options as key-value pairs
*
* @returns {{[key: string]: string}}
* @returns {{[key: string]: any}}
*/
opts(): { [key: string]: string };
opts(): { [key: string]: any };

/**
* Set the description to `str`.
Expand Down Expand Up @@ -275,7 +275,7 @@ declare namespace local {
*
* @param {(str: string) => string} [cb]
*/
help(cb?: (str: string) => string): void;
help(cb?: (str: string) => string): never;
}

}
Expand Down

0 comments on commit 89edef0

Please sign in to comment.