From 4fd9b8f2b5a98bfcde57970b48fed2488a80f356 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 17 Sep 2021 21:53:37 +0300 Subject: add in master snapshot of epubjs --- lib/epub.js/types/utils/hook.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/epub.js/types/utils/hook.d.ts (limited to 'lib/epub.js/types/utils/hook.d.ts') diff --git a/lib/epub.js/types/utils/hook.d.ts b/lib/epub.js/types/utils/hook.d.ts new file mode 100644 index 0000000..9db1491 --- /dev/null +++ b/lib/epub.js/types/utils/hook.d.ts @@ -0,0 +1,18 @@ +interface HooksObject { + [key: string]: Hook +} + +export default class Hook { + constructor(context: any); + + register(func: Function): void; + register(arr: Array): void; + + deregister(func: Function): void; + + trigger(...args: any[]): Promise; + + list(): Array; + + clear(): void; +} -- cgit v1.2.3