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

Commit

Permalink
fix: make config required in constructor only
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 31, 2018
1 parent b198cd2 commit 78124f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export interface IConvertToCachedOptions {
}

export interface ICommand extends ICachedCommand {
run(argv: string[], opts?: ICommandOptions): Promise<void>
run(argv: string[], opts?: Partial<ICommandOptions>): Promise<void>
convertToCached(opts?: IConvertToCachedOptions): ICachedCommand
}

export interface ICommandOptions {
root?: string
config?: IConfig
config: IConfig
}

export interface ICachedArg {
Expand Down

0 comments on commit 78124f7

Please sign in to comment.