UNPKG

myanimelist-wrapper

Version:

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

34 lines 898 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PeopleEndpoint = void 0; class PeopleEndpoint { constructor(client) { this.client = client; } /** * Get person by ID * @param id Person ID * @returns Promise with person data */ async getById(id) { return this.client.request(`/people/${id}`); } /** * Get person pictures * @param id Person ID * @returns Promise with person pictures data */ async getPictures(id) { return this.client.request(`/people/${id}/pictures`); } /** * Search for people * @param params Search parameters * @returns Promise with people search results */ async search(params) { return this.client.request("/people", params); } } exports.PeopleEndpoint = PeopleEndpoint; //# sourceMappingURL=people.js.map