aboutsummaryrefslogtreecommitdiff
path: root/src/models/parser.ts
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-02 13:43:20 +0530
committerRitesh Ghosh <[email protected]>2023-08-02 13:43:20 +0530
commit4efe9c9b094d59809b91244f70b052d30a21db40 (patch)
tree3a9f710e71ae06e4605acc0e69699a0b58079d8a /src/models/parser.ts
parentd4e3012320367f4c8c1bc15f955da07c4d7e2989 (diff)
downloadaniwatch-api-4efe9c9b094d59809b91244f70b052d30a21db40.tar.xz
aniwatch-api-4efe9c9b094d59809b91244f70b052d30a21db40.zip
feat: added parser types
Diffstat (limited to 'src/models/parser.ts')
-rw-r--r--src/models/parser.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/models/parser.ts b/src/models/parser.ts
new file mode 100644
index 0000000..0d08727
--- /dev/null
+++ b/src/models/parser.ts
@@ -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;
+}