feat: added parser types
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
import { HttpError } from "http-errors";
|
||||||
|
import { Anime, AnimeCategories, Top10Anime } from "./anime";
|
||||||
|
|
||||||
|
export interface ScrapedAnimeCategory {
|
||||||
|
animes: Array<Anime> | HttpError;
|
||||||
|
genres: Array<string>;
|
||||||
|
top10Animes: {
|
||||||
|
today: Array<Top10Anime> | HttpError;
|
||||||
|
week: Array<Top10Anime> | HttpError;
|
||||||
|
month: Array<Top10Anime> | HttpError;
|
||||||
|
};
|
||||||
|
category: AnimeCategories;
|
||||||
|
currentPage: number;
|
||||||
|
hasNextPage: boolean;
|
||||||
|
totalPages: number;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user