Skip to content

Commit

Permalink
fix(types): printCommands in interface GluegunPrint is missing the op…
Browse files Browse the repository at this point in the history
…tional param (#615 by @amartincastro)
  • Loading branch information
amartincastro authored May 5, 2020
1 parent aee220d commit 260372f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/toolbox/print-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { GluegunToolbox } from '../index'
import * as CLITable from 'cli-table3'
import * as importedColors from 'colors'
import ora = require('ora')
import { Toolbox } from '../domain/toolbox'

export type GluegunPrintColors = typeof importedColors & {
highlight: (t: string) => string
Expand Down Expand Up @@ -45,7 +46,7 @@ export interface GluegunPrint {
/* An `ora`-powered spinner. */
spin(options?: ora.Options | string): ora.Ora
/* Print help info for known CLI commands. */
printCommands(toolbox: GluegunToolbox): void
printCommands(toolbox: Toolbox, commandRoot?: string[]): void
/* Prints help info, including version and commands. */
printHelp(toolbox: GluegunToolbox): void
}

0 comments on commit 260372f

Please sign in to comment.