UNPKG

node-myanimelist

Version:
47 lines (46 loc) 1.21 kB
/** * # Schedule * * #### For more info visit <a href="https://jikan.docs.apiary.io/#reference/0/schedule " target="_blank">https://jikan.docs.apiary.io</a> * * To get schedule you need to create schedule object, like so: * ```ts * let schedule = Jikan.schedule(); * ``` * And then you can use schedule object multiple times to get desired information. * ```ts * schedule.all(); * schedule.monday(); * schedule.tuesday(); * schedule.wednesday(); * schedule.thursday(); * schedule.friday(); * schedule.saturday(); * schedule.sunday(); * schedule.other(); * schedule.unknown(); * ``` * Each of those functions returns promise * ## Example * ```ts * Jikan.schedule().all() * .then(res => res.data) * .then(scheduleJson => {}); * ``` */ export declare class Schedule { /** @ignore */ private baseUrl; constructor(); all(): Promise<any>; monday(): Promise<any>; tuesday(): Promise<any>; wednesday(): Promise<any>; thursday(): Promise<any>; friday(): Promise<any>; saturday(): Promise<any>; sunday(): Promise<any>; other(): Promise<any>; unknown(): Promise<any>; } export declare function schedule(): Schedule;