myanimelist-url-to-id
Version:
MyAnimeList raw URL to ID
11 lines • 338 B
TypeScript
/**
* Get Charater ID from given MAL Anime URL.
* @param url URL string of MyAnimeList Anime URL
*/
export declare function getAnimeId(url: string): number;
/**
* Get MAL Anime URL (not canonical) from given ID.
* @param id Anime ID
*/
export declare function getAnimeUrl(id: number): string;
//# sourceMappingURL=AnimeUtil.d.ts.map