@rosschiu/kiban-sdk
    Preparing search index...

    Interface AppClientConfig

    Configuration for createAppClient.

    interface AppClientConfig {
        appKey: string;
        credentials: ServiceCredentials;
        fetchFn?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        gatewayOrigin: string;
    }
    Index
    appKey: string

    The app key the manifest registered.

    credentials: ServiceCredentials

    The app's service token source.

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

    Override for fetch (tests).

    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>

    gatewayOrigin: string

    Gateway origin.