UNPKG

468 BTypeScriptView Raw
1import { ICommand } from './command';
2import { ICLIConfig } from './config';
3import { IPlugin } from './plugin';
4export interface Hooks {
5 init: {
6 id: string;
7 };
8 update: {};
9 'command_not_found': {
10 id: string;
11 };
12 'plugins:parse': {
13 pjson: IPlugin;
14 };
15 prerun: {
16 Command: ICommand;
17 argv: string[];
18 };
19}
20export declare type IHook<T extends {}> = (options: T & {
21 config: ICLIConfig;
22}) => any;