Skip to content
Myr

Fix types (#804)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Command#opts type is { [key: string]: any }. * Command#help's return type is never.

authored by Blair Zajac · committed by Roman Vanesyan · parent 001d560 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:typings/index.d.ts+3 added-3 removed
216 unmodified lines
217218 /**219 * Return an object containing options as key-value pairs220 *221 * @returns {{[key: string]: string}}221 * @returns {{[key: string]: any}}222 */223 opts(): { [key: string]: string };223 opts(): { [key: string]: any };224225 /**226 * Set the description to `str`.227 *
46 unmodified lines
274 /** Output help information and exit.275 *276 * @param {(str: string) => string} [cb]277 */278 help(cb?: (str: string) => string): void;278 help(cb?: (str: string) => string): never;279 }280281}282
27 unmodified lines