add loadNext to search

This commit is contained in:
nyne
2024-10-26 09:41:12 +08:00
parent 4d19c41708
commit bc0eaa622c
2 changed files with 16 additions and 4 deletions

View File

@@ -334,6 +334,18 @@ class NewComicSource extends ComicSource {
*/
},
/**
* load search result with next page token.
* The field will be ignored if `load` function is implemented.
* @param keyword {string}
* @param options {(string)[]} - options from optionList
* @param next {string | null}
* @returns {Promise<{comics: Comic[], maxPage: number}>}
*/
loadNext: async (keyword, options, next) => {
},
// provide options for search
optionList: [
{