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

Merge pull request #1140 from EduardoJM/master

fix the getRange in Book return type to Promise
This commit is contained in:
Fred Chasen 2021-03-08 15:25:32 -08:00 committed by GitHub
commit 952190e76f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;