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>;
}

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