refactor(animeCategory): updated category prop type

This commit is contained in:
Ritesh Ghosh
2023-08-13 19:39:16 +05:30
parent 39f496aa18
commit 09ddda2799
+2 -2
View File
@@ -1,5 +1,5 @@
import { HttpError } from "http-errors";
import { Anime, Top10Anime, AnimeCategories } from "../anime";
import { Anime, Top10Anime } from "../anime";
export interface ScrapedAnimeCategory {
animes: Array<Anime> | HttpError;
@@ -9,7 +9,7 @@ export interface ScrapedAnimeCategory {
week: Array<Top10Anime> | HttpError;
month: Array<Top10Anime> | HttpError;
};
category: AnimeCategories;
category: string;
totalPages: number;
currentPage: number;
hasNextPage: boolean;