Skip to content
Myr

Change .action() JSDoc/TSDoc example (#1614)

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

authored by John Gee · committed by GitHub · parent 6e00f44 · Browse files · 2 files+6 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+6 added−6 removed

  • other:+6 added−6 removed

2 files+6 added−6 removed

modified:lib/command.js+3 added-3 removed
461 unmodified lines
462 * Register callback `fn` for the command.463 *464 * @example465 * program466 * .command('help')467 * .description('display verbose help')466 * .command('serve')467 * .description('start service')468 * .action(function() {469 * // output help here469 * // do work here470 * });471 *472 * @param {Function} fn473 * @return {Command} `this` command for chaining
1471 unmodified lines
modified:typings/index.d.ts+3 added-3 removed
423 unmodified lines
424 *425 * @example426 * ```427 * program428 * .command('help')429 * .description('display verbose help')428 * .command('serve')429 * .description('start service')430 * .action(function() {431 * // output help here431 * // do work here432 * });433 * ```434 *435 * @returns `this` command for chaining
339 unmodified lines