node-myanimelist
Version:
Node.js wrappers for MAL.
31 lines (30 loc) • 784 B
TypeScript
/**
* # Person
*
* #### For more info visit <a href="https://jikan.docs.apiary.io/#reference/0/person" target="_blank">https://jikan.docs.apiary.io</a>
*
* To get person you need to create person object, like that:
* ```ts
* let person = Jikan.person(id);
* ```
* Now you can use person object multiple times to get desired information.
* ```ts
* person.info();
* person.pictures();
* ```
* Each of those functions returns promise
* ## Example
* ```ts
* person.info()
* .then(res => res.data)
* .then(personJson => personJson.name);
* ```
*/
export declare class Person {
/** @ignore */
private baseUrl;
constructor(id: number);
info(): Promise<any>;
pictures(): Promise<any>;
}
export declare function person(id: number): Person;