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

    Type Alias FetchMethod<EndpointToFetch>

    FetchMethod: IsEqual<
        KeyCount<
            Record<
                ExtractKeysWithMatchingValues<EndpointToFetch["methods"], true>,
                boolean,
            >,
        >,
        1,
    > extends true
        ? never
        :
            | Extract<
                HttpMethod,
                ExtractKeysWithMatchingValues<EndpointToFetch["methods"], true>,
            >
            | `${Extract<
                HttpMethod,
                ExtractKeysWithMatchingValues<EndpointToFetch["methods"], true>,
            >}`

    Type that determines which HTTP request methods can be used for the given endpoint definition.

    Type Parameters