-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* Added ComicK * Add to providers-list * Fix imports
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { IMangaChapterPage, IMangaInfo, IMangaResult, ISearch, MangaParser } from '../../models'; | ||
declare class ComicK extends MangaParser { | ||
readonly name = "ComicK"; | ||
protected baseUrl: string; | ||
protected logo: string; | ||
protected classPath: string; | ||
private readonly apiUrl; | ||
/** | ||
* @description Fetches info about the manga | ||
* @param mangaId Comic slug | ||
* @returns Promise<IMangaInfo> | ||
*/ | ||
fetchMangaInfo: (mangaId: string) => Promise<IMangaInfo>; | ||
/** | ||
* | ||
* @param chapterId Chapter ID (HID) | ||
* @returns Promise<IMangaChapterPage[]> | ||
*/ | ||
fetchChapterPages: (chapterId: string) => Promise<IMangaChapterPage[]>; | ||
/** | ||
* @param query search query | ||
* @param page page number (default: 1) | ||
* @param limit limit of results to return (default: 20) (max: 100) (min: 1) | ||
*/ | ||
search: (query: string, page?: number, limit?: number) => Promise<ISearch<IMangaResult>>; | ||
private fetchAllChapters; | ||
/** | ||
* @description Fetches the comic ID from the slug | ||
* @param id Comic slug | ||
* @returns Promise<number> -1 if not found | ||
*/ | ||
private getComicId; | ||
} | ||
export default ComicK; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.