Skip to content

Commit

Permalink
Change .action() JSDoc/TSDoc example (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Sep 27, 2021
1 parent 6e00f44 commit 36c2f68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
*
* @example
* program
* .command('help')
* .description('display verbose help')
* .command('serve')
* .description('start service')
* .action(function() {
* // output help here
* // do work here
* });
*
* @param {Function} fn
Expand Down
6 changes: 3 additions & 3 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ export class Command {
* @example
* ```
* program
* .command('help')
* .description('display verbose help')
* .command('serve')
* .description('start service')
* .action(function() {
* // output help here
* // do work here
* });
* ```
*
Expand Down

0 comments on commit 36c2f68

Please sign in to comment.