diff options
Diffstat (limited to 'src/models/parser.ts')
| -rw-r--r-- | src/models/parser.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/models/parser.ts b/src/models/parser.ts index de7c343..d2a0c2c 100644 --- a/src/models/parser.ts +++ b/src/models/parser.ts @@ -1,14 +1,18 @@ import { HttpError } from "http-errors"; import { Anime, + Season, Top10Anime, + RelatedAnime, TrendingAnime, SpotlightAnime, TopAiringAnime, AnimeCategories, MostPopularAnime, TopUpcomingAnime, + RecommendedAnime, LatestEpisodeAnime, + AnimeGeneralAboutInfo, } from "./anime"; export interface ScrapedAnimeCategory { @@ -44,3 +48,14 @@ export interface ScrapedHomePage topUpcomingAnimes: Array<TopUpcomingAnime> | HttpError; topAiringAnimes: Array<TopAiringAnime> | HttpError; } + +export interface ScrapedAnimeAboutInfo + extends Pick<ScrapedAnimeSearchResult, "mostPopularAnimes"> { + anime: { + info: AnimeGeneralAboutInfo; + moreInfo: Record<string, string | string[]>; + }; + seasons: Array<Season>; + relatedAnimes: Array<RelatedAnime> | HttpError; + recommendedAnimes: Array<RecommendedAnime> | HttpError; +} |
