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.

31 lines (30 loc) 1.13 kB
import { AnimeParser, ISearch, IAnimeInfo, IAnimeResult, ISource, IEpisodeServer } from '../../models'; declare class AnimePahe extends AnimeParser { readonly name = "AnimePahe"; protected baseUrl: string; protected logo: string; protected classPath: string; /** * @param query Search query */ search: (query: string) => Promise<ISearch<IAnimeResult>>; /** * @param id id format id/session * @param episodePage Episode page number (optional) default: -1 to get all episodes. number of episode pages can be found in the anime info object */ fetchAnimeInfo: (id: string, episodePage?: number) => Promise<IAnimeInfo>; findEpisodeServer(animeId: string, episodeId: string): Promise<any>; /** * * @param episodeId episode id */ fetchEpisodeSources: (id: string, episodeId: string) => Promise<ISource>; private fetchEpisodes; /** * @deprecated * @attention AnimePahe doesn't support this method */ fetchEpisodeServers: (episodeLink: string) => Promise<IEpisodeServer[]>; private Headers; } export default AnimePahe;