@tutkli/jikan-ts
Version:
Node.js wrapper for the Jikan API with built-in typings.
12 lines (11 loc) • 353 B
TypeScript
import type { KyInstance } from 'ky';
import { type CacheOptions, ResponseCache } from './cache';
export interface KyClientConfig {
enableLogging?: boolean;
cacheOptions?: Partial<CacheOptions>;
kyInstance?: KyInstance;
}
export declare function createKyInstance(config?: KyClientConfig): {
api: KyInstance;
cache: ResponseCache;
};