UNPKG

421 BTypeScriptView Raw
1import * as Config from '.';
2export interface Hooks {
3 init: {
4 id: string;
5 };
6 update: {};
7 'command_not_found': {
8 id: string;
9 };
10 'plugins:parse': {
11 pjson: Config.IPlugin;
12 };
13 prerun: {
14 Command: Config.Command.Full;
15 argv: string[];
16 };
17}
18export declare type Hook<K extends keyof Hooks> = (options: Hooks[K] & {
19 config: Config.IConfig;
20}) => any;