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

    Type Alias CollapsedFetchEndpointParams<EndpointToFetch, AllowFetchMock>

    CollapsedFetchEndpointParams: EndpointToFetch extends NoParam
        ? [Readonly<GenericFetchEndpointParams>?]
        : Readonly<
            FetchEndpointParams<Exclude<EndpointToFetch, NoParam>, AllowFetchMock>,
        > extends infer RealParams
            ? RequiredKeysOf<RealParams> extends never
                ? [RealParams?]
                : [RealParams]
            : []

    A wrapper for FetchEndpointParams that requires parameters based on the endpoint being fetched.

    Type Parameters

    • EndpointToFetch extends
          | Readonly<
              SelectFrom<
                  EndpointDefinition,
                  {
                      methods: true;
                      path: true;
                      requestDataShape: true;
                      responseDataShape: true;
                  },
              >,
          >
          | NoParam
    • AllowFetchMock extends boolean = true