diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-02 13:43:20 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-02 13:43:20 +0530 |
| commit | 4efe9c9b094d59809b91244f70b052d30a21db40 (patch) | |
| tree | 3a9f710e71ae06e4605acc0e69699a0b58079d8a /src | |
| parent | d4e3012320367f4c8c1bc15f955da07c4d7e2989 (diff) | |
| download | aniwatch-api-4efe9c9b094d59809b91244f70b052d30a21db40.tar.xz aniwatch-api-4efe9c9b094d59809b91244f70b052d30a21db40.zip | |
feat: added parser types
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/parser.ts | 16 |
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; +} |
