44 lines
1.0 KiB
TypeScript
Vendored
44 lines
1.0 KiB
TypeScript
Vendored
export declare function makeWanikani(apiKey?: string): import("axios-rate-limit").RateLimitedAxiosInstance & {
|
|
getKanji(): Promise<{
|
|
id: number;
|
|
level: number;
|
|
characters: string;
|
|
}[]>;
|
|
getVocab(): Promise<{
|
|
id: number;
|
|
level: number;
|
|
characters: string;
|
|
sentences: {
|
|
ja: string;
|
|
en: string;
|
|
}[];
|
|
}[]>;
|
|
getLearnt(): Promise<{
|
|
id: number;
|
|
srsLevel: number;
|
|
}[]>;
|
|
};
|
|
export declare type WaniKaniAxiosInstance = ReturnType<typeof makeWanikani>;
|
|
export interface IResource<T = any> {
|
|
id: number;
|
|
url: string;
|
|
data_updated_at: string;
|
|
data: T;
|
|
}
|
|
export interface ICollection<T = any> {
|
|
object: string;
|
|
url: string;
|
|
pages: {
|
|
next_url?: string;
|
|
previous_url?: string;
|
|
per_page: number;
|
|
};
|
|
total_count: number;
|
|
data_updated_at: string;
|
|
data: T[];
|
|
}
|
|
export interface IError {
|
|
error: string;
|
|
code: number;
|
|
}
|
|
//# sourceMappingURL=index.d.ts.map
|