mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Added type declarations
This commit is contained in:
parent
0da286b0a2
commit
6bfcd1e4eb
50 changed files with 1837 additions and 54 deletions
30
types/spine.d.ts
vendored
Normal file
30
types/spine.d.ts
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
import Packaging from "./packaging";
|
||||
import Section from "./section";
|
||||
import Hook from "./utils/hook";
|
||||
|
||||
export default class Spine {
|
||||
constructor();
|
||||
|
||||
hooks: {
|
||||
serialize: Hook,
|
||||
content: Hook
|
||||
};
|
||||
|
||||
unpack(_package: Packaging, resolver: Function, canonical: Function): void;
|
||||
|
||||
get(target?: string | number): Section;
|
||||
|
||||
each(...args: any[]): any;
|
||||
|
||||
first(): Section;
|
||||
|
||||
last(): Section;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
private append(section: Section): number;
|
||||
|
||||
private prepend(section: Section): number;
|
||||
|
||||
private remove(section: Section): number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue