Skip to content

Commit

Permalink
fix: config runHook interface (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 10, 2023
1 parent 123a9ef commit 7180b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export interface Config {
readonly commandIDs: string[];

runCommand<T = unknown>(id: string, argv?: string[], cachedCommand?: Command.Loadable): Promise<T>;
runHook<T extends keyof Hooks>(event: T, opts: Hooks[T]['options'], timeout?: number): Promise<Hook.Result<Hooks[T]['return']>>;
runHook<T extends keyof Hooks>(event: T, opts: Hooks[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<Hooks[T]['return']>>;
getAllCommandIDs(): string[]
getAllCommands(): Command.Loadable[]
findCommand(id: string, opts: { must: true }): Command.Loadable;
Expand Down

0 comments on commit 7180b4c

Please sign in to comment.