AniLink - v2.0.0
    Preparing search index...

    Type Alias ProviderFactory<TCredentials, TClient>

    ProviderFactory: (
        credentials?: TCredentials,
        legacyOptions?: RequestOptions,
    ) => TClient

    ProviderFactory is a provider factory that receives only that provider's credential slot.

    It is the shape of each entry in PROVIDER_FACTORIES and is invoked by buildProviderClients with isolated AniListCredentials or MalCredentials plus optional RequestOptions.

    Type Parameters

    Type Declaration

      • (credentials?: TCredentials, legacyOptions?: RequestOptions): TClient
      • Parameters

        • Optionalcredentials: TCredentials

          The provider's credential slot.

        • OptionallegacyOptions: RequestOptions

          Transport settings for the legacy new AniLink(token, options) form; only the AniList factory consumes this.

        Returns TClient

        The typed client for the provider.