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

Commit

Permalink
fix: remove hook return
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 25, 2018
1 parent 4d28c75 commit 3e51df7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ export interface Hooks {
}
}

export interface IHookReturn {
exit?: number
}

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

0 comments on commit 3e51df7

Please sign in to comment.