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

Fix locations.generate's return type

This commit is contained in:
Rafael Saback 2021-12-29 11:49:29 +01:00
parent 5c610143bf
commit 33df7dd27e
2 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ class Locations {
/**
* Load all of sections in the book to generate locations
* @param {int} chars how many chars to split on
* @return {object} locations
* @return {Promise<Array<string>>} locations
*/
generate(chars) {

View file

@ -5,7 +5,7 @@ import EpubCFI from "./epubcfi";
export default class Locations {
constructor(spine: Spine, request?: Function, pause?: number);
generate(chars: number): object;
generate(chars: number): Promise<Array<string>>;
process(section: Section): Promise<Array<string>>;