UNPKG

myanimelist-wrapper

Version:

A comprehensive TypeScript wrapper for the Jikan API v4 (unofficial MyAnimeList API)

43 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeasonsEndpoint = void 0; class SeasonsEndpoint { constructor(client) { this.client = client; } /** * Get available seasons * @returns Promise with available seasons data */ async getList() { return this.client.request("/seasons"); } /** * Get seasonal anime * @param year Year * @param season Season (winter, spring, summer, fall) * @param params Query parameters * @returns Promise with seasonal anime data */ async getSeason(year, season, params) { return this.client.request(`/seasons/${year}/${season}`, params); } /** * Get current season anime * @param params Query parameters * @returns Promise with current season anime data */ async getCurrent(params) { return this.client.request("/seasons/now", params); } /** * Get upcoming season anime * @param params Query parameters * @returns Promise with upcoming season anime data */ async getUpcoming(params) { return this.client.request("/seasons/upcoming", params); } } exports.SeasonsEndpoint = SeasonsEndpoint; //# sourceMappingURL=seasons.js.map