1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
interface HooksObject { [key: string]: Hook } export default class Hook { constructor(context: any); register(func: Function): void; register(arr: Array<Function>): void; deregister(func: Function): void; trigger(...args: any[]): Promise<any>; list(): Array<any>; clear(): void; }