UNPKG

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) 571 B
import { MangaParser, ISearch, IMangaInfo, IMangaResult, IMangaChapterPage } from '../../models'; declare class MangaHost extends MangaParser { readonly name = "MangaHost"; protected baseUrl: string; protected logo: string; protected classPath: string; fetchMangaInfo: (mangaId: string) => Promise<IMangaInfo>; fetchChapterPages: (mangaId: string, chapterId: string) => Promise<IMangaChapterPage[]>; /** * * @param query Search query */ search: (query: string) => Promise<ISearch<IMangaResult>>; } export default MangaHost;