rest-vir - v2.2.0
    Preparing search index...

    Type Alias MockHostFetchOptions<Api, Context>

    Options for createMockHostFetch.

    type MockHostFetchOptions<Api extends Readonly<ApiDefinition>, Context> = {
        createHostContext: MockCreateHostContext<Context> | undefined;
        endpointImplementations: Readonly<MockHostEndpointMap<Api, Context>>;
    }

    Type Parameters

    Index

    Properties

    createHostContext: MockCreateHostContext<Context> | undefined

    Raw mock-host createHostContext callback. The fetch wrapper handles the missing-callback case (treats it as {context: undefined}) and forwards the per-request params for you.

    endpointImplementations: Readonly<MockHostEndpointMap<Api, Context>>