1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

fix the getRange in Book return type to Promise

This commit is contained in:
Eduardo 2020-10-23 09:39:20 -03:00
parent a1e77b745b
commit 0811cf9ea4
2 changed files with 2 additions and 2 deletions

View file

@ -696,7 +696,7 @@ class Book {
/**
* Find a DOM Range for a given CFI Range
* @param {EpubCFI} cfiRange a epub cfi range
* @return {Range}
* @return {Promise}
*/
getRange(cfiRange) {
var cfi = new EpubCFI(cfiRange);

2
types/book.d.ts vendored
View file

@ -71,7 +71,7 @@ export default class Book {
determineType(input: string): string;
getRange(cfiRange: string): Range;
getRange(cfiRange: string): Promise<Range>;
key(identifier?: string): string;