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/spine.d.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/epub.js/types/spine.d.ts (limited to 'lib/epub.js/types/spine.d.ts') diff --git a/lib/epub.js/types/spine.d.ts b/lib/epub.js/types/spine.d.ts new file mode 100644 index 0000000..6cd59ce --- /dev/null +++ b/lib/epub.js/types/spine.d.ts @@ -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; +} -- cgit v1.2.3