make git npm installable
This commit is contained in:
1 parent
59e2fbeebb
commit
bf127a2d89
5 files changed
+148
-2
No files matched your search
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
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
|
||||
Reference in new issue
Block a user