File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Locations {
3737 /**
3838 * Load all of sections in the book to generate locations
3939 * @param {int } chars how many chars to split on
40- * @return {object } locations
40+ * @return {Promise<Array<string>> } locations
4141 */
4242 generate ( chars ) {
4343
Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ import EpubCFI from "./epubcfi";
55export default class Locations {
66 constructor ( spine : Spine , request ?: Function , pause ?: number ) ;
77
8- generate ( chars : number ) : object ;
8+ generate ( chars : number ) : Promise < Array < string > > ;
99
1010 process ( section : Section ) : Promise < Array < string > > ;
1111
12- locationFromCfi ( cfi : string | EpubCFI ) : Location ;
12+ locationFromCfi ( cfi : string | EpubCFI ) : Location ;
1313
14- percentageFromCfi ( cfi : string | EpubCFI ) : number ;
14+ percentageFromCfi ( cfi : string | EpubCFI ) : number ;
1515
1616 percentageFromLocation ( loc : number ) : number ;
1717
1818 cfiFromLocation ( loc : number ) : string ;
1919
2020 cfiFromPercentage ( percentage : number ) : string ;
2121
22- load ( locations : string ) : Array < string > ;
22+ load ( locations : string ) : Array < string > ;
2323
2424 save ( ) : string ;
2525
You can’t perform that action at this time.
0 commit comments