contentapi.ts
Version:
Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
16 lines (15 loc) • 554 B
TypeScript
import { MangaParser, ISearch, IMangaInfo, IMangaResult, IMangaChapterPage } from '../../models';
declare class MangaPill extends MangaParser {
readonly name = "MangaPill";
protected baseUrl: string;
protected logo: string;
protected classPath: string;
/**
*
* @param query Search query
*/
search: (query: string) => Promise<ISearch<IMangaResult>>;
fetchMangaInfo: (mangaId: string) => Promise<IMangaInfo>;
fetchChapterPages: (chapterId: string) => Promise<IMangaChapterPage[]>;
}
export default MangaPill;