mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Merge pull request #1239 from rafaelsaback/fix-locations-generate-type
Fix locations.generate's return type
This commit is contained in:
commit
f6fece4f88
2 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
||||
|
|
2
types/locations.d.ts
vendored
2
types/locations.d.ts
vendored
|
@ -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>>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue