interface OpenAlgoConfig {
    apiKey: string;
    baseUrl: string;
    fetchImpl?: (
        input: URL | RequestInfo,
        init?: RequestInit,
    ) => Promise<Response>;
}

Hierarchy (View Summary)

Properties

apiKey: string
baseUrl: string
fetchImpl?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>

Injectable fetch (defaults to global fetch); lets the adapter be tested offline.

Type declaration

    • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
    • Parameters

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns Promise<Response>