map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface CustomFetch

    Represents a custom implementation of the apprt-fetch library. Used for testing.

    interface CustomFetch {
        config: Config;
        destroy(): void;
        fetch(
            target: ApprtRequestTarget,
            init?: ApprtRequestInit,
        ): Promise<Response>;
        fetchJson<T = unknown>(
            target: ApprtRequestTarget,
            init?: ApprtRequestInit,
        ): Promise<T>;
    }
    Index

    Properties

    Methods

    Properties

    config: Config

    A separate instance of the configuration (non-global).

    Methods

    • Call this method to clean up any state associated with this instance.

      Returns void