Skip to content
Myr

typings: use overloads

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 7a122e7 · Browse files · 2 files+12 added−6 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−6 removed

  • other:+12 added−6 removed

2 files+12 added−6 removed

modified:typings/commander-tests.ts+1 added-1 removed
modified:typings/index.d.ts+11 added-5 removed
1// Type definitions for commander 2.111// 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>2// Definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>34declare class Option {5 flags: string;6 required: boolean;
237 unmodified lines
244 usage(str: string): Command;245 usage(): string;246247 /**249 * Get or set the name of the command.248 * Set the name of the command.249 *250 * @param {string} str252 * @return {string|Command}251 * @return {Command}252 */254 name(str?: string): string | Command;253 name(str: string): Command;254255 /**256 * Get the name of the command.257 *258 * @return {string}259 */260 name(): string;261262 /**263 * Output help information for this command.264 *265 * @param {() => void} [cb] Callback method266 */
29 unmodified lines