1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00
epub.js/types/utils/hook.d.ts
2018-10-28 22:31:24 -07:00

18 lines
303 B
TypeScript

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;
}