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

    Type Alias ConstructPathParams<EndpointPath>

    ConstructPathParams: EndpointPath extends NoParam
        ? GenericPathParams
        : Exclude<EndpointPath, NoParam> extends infer Path extends string
            ? Path extends `${string}:${string}`
            | `${string}/*`
                ? ResolveWildcard<HasWildcardParam<Path>> & ResolveNamedParams<
                    NamedPathParams<Path>,
                >
                : IsEqual<`/${string}`, Path> extends true
                    ? ResolveWildcard<HasWildcardParam<Path>> & ResolveNamedParams<
                        NamedPathParams<Path>,
                    >
                    : Readonly<{ pathParams?: undefined; wildcard?: undefined }>
            : GenericPathParams

    Converts an endpoint path into the fetch params needed for its to operate.

    Fast-paths simple paths (no : or /*) to avoid recursive template literal parsing.

    Type Parameters

    • EndpointPath extends string | NoParam