summaryrefslogtreecommitdiff
path: root/lib/epub.js/types/utils/hook.d.ts
blob: 9db1491eee3902ae0b05cd846d9b3af282d93230 (plain)
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;
}