mysa-js-sdk
    Preparing search index...

    Interface MysaApiClientOptions

    Configuration options for the Mysa API client.

    interface MysaApiClientOptions {
        fetcher?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        logger?: Logger;
    }
    Index

    Properties

    Properties

    fetcher?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Optional fetch function to use for HTTP requests.

    Type declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    The global fetch function.

    logger?: Logger

    Optional logger instance for client logging.

    A _void_ logger instance that does nothing.