mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
fix the getRange in Book return type to Promise
This commit is contained in:
parent
a1e77b745b
commit
0811cf9ea4
2 changed files with 2 additions and 2 deletions
|
@ -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
2
types/book.d.ts
vendored
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue