• Get configuration for a specific manga source.

    Parameters

    Returns MangaSourceConfig

    The source's configuration object.

    If no configuration exists for the provided source.

    export function getMangaSourceConfig(source: MangaSource): MangaSourceConfig {
    const config = MANGA_SOURCE_CONFIGS[source];
    if (!config)
    throw new Error(`No configuration found for manga source: ${source}`);
    return config;
    }