gluegun
gluegun copied to clipboard
printCommands in interface GluegunPrint is missing the optional paramater
The definition of printCommands in GluegunPrint interface is wrong:
src/toolbox/print-types.ts
export interface GluegunPrint {
...
printCommands(toolbox: GluegunToolbox): void;
...
}
It should be:
src/toolbox/print-types.ts
export interface GluegunPrint {
...
printCommands(toolbox: Toolbox, commandRoot?: string[]): void
...
}
Gave it a shot!
@amartincastro I'm sorry, it's my fault.
Either the class Toolbox
has to be imported: import { Toolbox } from '../domain/toolbox'
or use the interface GluegunToolbox
instead of the class Toolbox
:
export interface GluegunPrint {
...
printCommands(toolbox: GluegunToolbox, commandRoot?: string[]): void
...
}
More correct would probably be to import Toolbox
, since the class is also used in print-tools.ts
.
After the change, the tests should run without errors.