rest-vir - v1.0.0
    Preparing search index...

    Type Alias GenericFetchEndpointParams

    A general version of FetchEndpointParams to be used when accepting any endpoint (like in tests).

    type GenericFetchEndpointParams = {
        bypassResponseValidation?: boolean;
        fetch?: (
            url: string,
            requestInit: RequestInit,
            endpoint?: GenericEndpointDefinition,
        ) => MaybePromise<Response>;
        method?: HttpMethod;
        options?: Omit<RequestInit, "body" | "method">;
        pathParams?: Record<string, string>;
        requestData?: any;
        searchParams?: BaseSearchParams;
    }
    Index

    Properties

    bypassResponseValidation?: boolean
    fetch?: (
        url: string,
        requestInit: RequestInit,
        endpoint?: GenericEndpointDefinition,
    ) => MaybePromise<Response>

    A custom fetch implementation. Useful for debugging or unit testing. This can safely be omitted to use the default JavaScript built-in global fetch function.

    method?: HttpMethod
    options?: Omit<RequestInit, "body" | "method">
    pathParams?: Record<string, string>
    requestData?: any
    searchParams?: BaseSearchParams