AniLink - v3.1.0
    Preparing search index...

    Interface AniLinkCredentials

    The per-provider credentials object accepted by the AniLink constructor.

    Each key targets exactly one provider namespace (aniLink.anilist, aniLink.mal, ...); credentials given under one key are never applied to another provider's requests. The optional top-level onHookError is a client-level default applied to every provider slot that does not define its own, so a single hook-error logger can be wired once instead of repeated per slot.

    interface AniLinkCredentials {
        anilist?: AniListCredentials;
        diagnostics?: DiagnosticsMode;
        mal?: MalCredentials;
        onHookError?: OnHookErrorHandler;
    }

    Hierarchy (View Summary)

    Index
    diagnostics?: DiagnosticsMode

    Client-level default for the diagnostics mode, applied to every provider slot that does not define its own diagnostics. Lets consumers silence the library's unsolicited diagnostics for the whole client (for example "silent" in captured-console environments) instead of repeating the setting on every slot.

    onHookError?: OnHookErrorHandler

    Client-level default for the onHookError lifecycle hook, applied to every provider slot that does not define its own onHookError. Lets consumers route hook failures to a real logger once per client instead of repeating the wiring on every call or accepting uncorrelated console.warn noise.