diff options
| author | WBRK-dev <[email protected]> | 2024-04-28 11:25:12 +0200 |
|---|---|---|
| committer | WBRK-dev <[email protected]> | 2024-04-28 11:25:12 +0200 |
| commit | 8abde11e7b09652447938afda936b0fa2bca7c76 (patch) | |
| tree | 9732e6f17f851d3dcd602355a16a54f5eb1aec0f /src/types | |
| parent | 0a291ad659aa9095fa443cfd55b094b2036920da (diff) | |
| download | aniwatch-api-8abde11e7b09652447938afda936b0fa2bca7c76.tar.xz aniwatch-api-8abde11e7b09652447938afda936b0fa2bca7c76.zip | |
feat: added promotional videos to `/info` endpoint response
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/anime.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types/anime.ts b/src/types/anime.ts index 9af00bc..cbb80c5 100644 --- a/src/types/anime.ts +++ b/src/types/anime.ts @@ -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>; |
