Skip to content
Myr

feat(typings): update to match js api

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

authored by Alan Agius · committed by Roman Vanesyan · parent d9abf56 · Browse files · 2 files+12 added−12 removed
This commit

State

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

Diff stats

2 files+12 added−12 removed

  • other:+12 added−12 removed

2 files+12 added−12 removed

modified:typings/commander-tests.ts+3 added
modified:typings/index.d.ts+9 added-12 removed
1// Type definitions for commander 2.91// Type definitions for commander 2.112// Project: https://github.com/visionmedia/commander.js3// Definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <http://github.com/mdezem>, vvakame <http://github.com/vvakame>45declare class Option {
239 unmodified lines
245 usage(str: string): Command;246 usage(): string;247248 /**249 * Get the name of the command.249 * Get or set the name of the command.250 *251 * @param {string} str251 * @return {string}252 * @return {string|Command}253 */253 name(): string;254 name(str?: string): string | Command;255256 /**257 * Output help information for this command.258 *258 * @param {(str: string) => string} [cb] Callback method259 * @param {() => void} [cb] Callback method260 */260 outputHelp(cb?: (str: string) => string): void;261 outputHelp(cb?: () => void): void;262262 /**263 * Output help information and exit.264 *265 * @param {(str: string) => string} [cb] Callback method266 */267 help(cb?: (str: string) => string): void;263 /** Output help information and exit. */264 help(): void;265}266267declare namespace commander {268
21 unmodified lines