aboutsummaryrefslogtreecommitdiff
path: root/src/models/parser.ts
blob: 0d08727b911e96e89c714ef66fb49ce028c945dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}