BaseProviderOpts: {
    apiKey?: string;
    apiUrl?: string;
    fetchFn?: FetchFunction;
    fetchOpts?: Record<string, unknown>;
    headers?: Record<string, unknown>;
}

Type declaration

  • OptionalapiKey?: string
  • OptionalapiUrl?: string

    e.g. schema://domain/api

  • OptionalfetchFn?: FetchFunction

    e.g. GM_fetch, ofetch.native and etc

  • OptionalfetchOpts?: Record<string, unknown>

    e.g. { dispatcher: ... }

  • Optionalheaders?: Record<string, unknown>