Configuration interface for manga source APIs. Defines endpoints, headers, rate limits, and cache settings.

export interface MangaSourceConfig {
/** Human-readable name of the source */
name: string;
/** Source identifier */
source: MangaSource;
/** Base API URL */
baseUrl: string;
/** Search and detail endpoint configuration */
endpoints: {
search: string;
detail: string;
};
/** Headers to include in API requests */
headers?: Record<string, string>;
/** Rate limiting configuration (optional) */
rateLimit?: {
requestsPerSecond: number;
burstLimit: number;
};
/** Cache configuration (optional) */
cache?: {
enabled: boolean;
ttlMinutes: number;
};
}
interface MangaSourceConfig {
    name: string;
    source: MangaSource;
    baseUrl: string;
    endpoints: { search: string; detail: string };
    headers?: Record<string, string>;
    rateLimit?: { requestsPerSecond: number; burstLimit: number };
    cache?: { enabled: boolean; ttlMinutes: number };
}

Properties

name: string

Human-readable name of the source

source: MangaSource

Source identifier

baseUrl: string

Base API URL

endpoints: { search: string; detail: string }

Search and detail endpoint configuration

headers?: Record<string, string>

Headers to include in API requests

rateLimit?: { requestsPerSecond: number; burstLimit: number }

Rate limiting configuration (optional)

cache?: { enabled: boolean; ttlMinutes: number }

Cache configuration (optional)