import AnimeThemes from "."; import { SeasonInfo, SeasonType } from "./season"; import Theme, { IThemeBaseResponse, IThemeMirrorResponse } from "./theme"; export default class Anime { readonly id: number; readonly title: string; readonly season: SeasonInfo; readonly themes: Theme[]; readonly api: AnimeThemes; constructor(data: IAnimeResponse, api: AnimeThemes); } export interface IAnimeResponse { malID: number; name: string; year: number; season: SeasonType; themes: IAnimeThemeResponse[]; } export interface IAnimeThemeResponse extends IThemeBaseResponse { mirror: IThemeMirrorResponse; }