mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Added type declarations
This commit is contained in:
parent
0da286b0a2
commit
6bfcd1e4eb
50 changed files with 1837 additions and 54 deletions
16
types/utils/hook.d.ts
vendored
Normal file
16
types/utils/hook.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
interface HooksObject {
|
||||
[key: string]: Hook
|
||||
}
|
||||
|
||||
export default class Hook {
|
||||
constructor(context: any);
|
||||
|
||||
register(func: Function): void;
|
||||
register(arr: Array<Function>): void;
|
||||
|
||||
trigger(...args: any[]): Promise<any>;
|
||||
|
||||
list(): Array<any>;
|
||||
|
||||
clear(): void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue