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

Commit

Permalink
fix: use CLIConfig in hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 20, 2018
1 parent a5db89e commit 4c6862a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ICommand} from './command'
import {IConfig} from './config'
import {ICLIConfig} from './config'
import {IPlugin, IPluginModule} from './plugin'

export interface Hooks {
Expand All @@ -20,4 +20,4 @@ export interface IHookReturn {
exit?: number
}

export type IHook<T extends {}> = (options: T & {config: IConfig}) => Promise<IHookReturn | void>
export type IHook<T extends {}> = (options: T & {config: ICLIConfig}) => Promise<IHookReturn | void>

0 comments on commit 4c6862a

Please sign in to comment.