Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: add constructor to icommand
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 4f7d1ac commit 9b2e1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ICommand<T = any> extends ICommandBase {
flags?: Parser.flags.Input<any>
args?: Parser.args.Input
new (argv: string[], opts: ICommandOptions): T
run(argv: string[], opts?: Partial<ICommandOptions>): Promise<void>
run(this: ICommand<T>, argv: string[], opts?: Partial<ICommandOptions>): Promise<void>
convertToCached(opts?: IConvertToCachedOptions): ICachedCommand
}

Expand Down

0 comments on commit 9b2e1b0

Please sign in to comment.