UNPKG

myanimelist-wrapper

Version:

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

50 lines 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TopEndpoint = void 0; class TopEndpoint { constructor(client) { this.client = client; } /** * Get top anime * @param params Query parameters * @returns Promise with top anime data */ async getAnime(params) { return this.client.request("/top/anime", params); } /** * Get top manga * @param params Query parameters * @returns Promise with top manga data */ async getManga(params) { return this.client.request("/top/manga", params); } /** * Get top characters * @param params Query parameters * @returns Promise with top characters data */ async getCharacters(params) { return this.client.request("/top/characters", params); } /** * Get top people * @param params Query parameters * @returns Promise with top people data */ async getPeople(params) { return this.client.request("/top/people", params); } /** * Get top reviews * @param params Query parameters * @returns Promise with top reviews data */ async getReviews(params) { return this.client.request("/top/reviews", params); } } exports.TopEndpoint = TopEndpoint; //# sourceMappingURL=top.js.map