Interface APIClientOptions

interface APIClientOptions {
    fetch?: Fetch;
    headers?: Record<string, string>;
    provider?: APIProvider;
    url?: string;
}

Hierarchy-Diagram

UML class diagram of APIClientOptions
Legend
icon for an interface in the UML class diagram interface

Hierarchy (view full)

Properties

fetch?: Fetch

Fetch instance, must be provided in non-browser environments. You can use the node-fetch package in Node.js.

headers?: Record<string, string>

Headers that will be applied to every request

provider?: APIProvider

API provider to use, if omitted and the url option is set the default provider will be used.

url?: string

URL to the API node to use, only used if the provider option is not set.