UNPKG

463 BTypeScriptView Raw
1import { ICommand } from './command';
2import { IConfig } from './config';
3import { IPJSON } from './pjson';
4import { IPluginModule } from './plugin';
5export interface IHooks {
6 init: {};
7 update: {};
8 'plugins:parse': {
9 module: IPluginModule;
10 pjson: IPJSON;
11 };
12 prerun: {
13 Command: ICommand;
14 argv: string[];
15 };
16}
17export declare type Hook<T extends {}> = (options: T & {
18 config: IConfig;
19}) => Promise<void>;