feat: added promotional videos to /info endpoint response

This commit is contained in:
WBRK-dev
2024-04-28 11:25:12 +02:00
parent 0a291ad659
commit 8abde11e7b
3 changed files with 32 additions and 1 deletions
+7
View File
@@ -48,6 +48,7 @@ export interface AnimeGeneralAboutInfo
stats: {
quality: string | null;
} & Pick<Anime, "duration" | "episodes" | "rating" | "type">;
promotionalVideos: AnimePromotionalVideo[];
}
export interface RecommendedAnime extends Anime {}
@@ -59,6 +60,12 @@ export interface Season extends Pick<Anime, CommonAnimeProps> {
title: string | null;
}
export interface AnimePromotionalVideo {
title: string | undefined;
source: string | undefined;
thumbnail: string | undefined;
}
export interface AnimeSearchSuggestion
extends Omit<MostPopularAnime, "episodes" | "type"> {
moreInfo: Array<string>;