diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-06-27 00:16:06 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-06-27 00:16:06 +0300 |
| commit | 67d8785083c159aaaf3a4757e3bd6d8a5e07602e (patch) | |
| tree | 26c94b4487dc129fc11e7095b1e3e06add7a908b /lib | |
| parent | 5fe9fbf8e5388c121964cc2ecaae34d92d12f632 (diff) | |
| download | the-epube-67d8785083c159aaaf3a4757e3bd6d8a5e07602e.tar.gz the-epube-67d8785083c159aaaf3a4757e3bd6d8a5e07602e.tar.xz | |
even more ts fixes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/epub.js/types/epubcfi.d.ts | 7 | ||||
| -rw-r--r-- | lib/epub.js/types/index.d.ts | 1 | ||||
| -rw-r--r-- | lib/epub.js/types/tsconfig.json | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/epub.js/types/epubcfi.d.ts b/lib/epub.js/types/epubcfi.d.ts index f9748bb..f45faf8 100644 --- a/lib/epub.js/types/epubcfi.d.ts +++ b/lib/epub.js/types/epubcfi.d.ts @@ -9,7 +9,7 @@ interface EpubCFISegment { interface EpubCFIStep { id: string, tagName: string, - type: number, + type: number|string, index: number } @@ -25,8 +25,9 @@ export default class EpubCFI { constructor(cfiFrom?: string | Range | Node, base?: string | object, ignoreClass?: string); base: EpubCFIComponent; - spinePos: number; - range: boolean; + spinePos: number; + range: boolean; + path: EpubCFIComponent; isCfiString(str: string): boolean; diff --git a/lib/epub.js/types/index.d.ts b/lib/epub.js/types/index.d.ts index 6a8ec9b..7cf87a1 100644 --- a/lib/epub.js/types/index.d.ts +++ b/lib/epub.js/types/index.d.ts @@ -10,6 +10,7 @@ export default Epub; export { default as Book } from './book'; export { default as EpubCFI } from './epubcfi'; +export { default as CFI } from './epubcfi'; export { default as Rendition, Location } from './rendition'; export { default as Contents } from './contents'; export { default as Layout } from './layout'; diff --git a/lib/epub.js/types/tsconfig.json b/lib/epub.js/types/tsconfig.json index 546c5a3..22ea59d 100644 --- a/lib/epub.js/types/tsconfig.json +++ b/lib/epub.js/types/tsconfig.json @@ -9,6 +9,7 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, + "ignoreDeprecations": "6.0", "baseUrl": "../", "typeRoots": [ "../" |
