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

    Type Alias ConstructPathParams<EndpointPath>

    ConstructPathParams: EndpointPath extends NoParam
        ? GenericPathParams
        : (
            IsEqual<
                PathParams<Exclude<EndpointPath, NoParam>>["hasWildcard"],
                true,
            > extends true
                ? Readonly<{ wildcard: string }>
                : IsEqual<
                    PathParams<Exclude<EndpointPath, NoParam>>["hasWildcard"],
                    false,
                > extends true
                    ? Readonly<{ wildcard?: undefined }>
                    : Readonly<{ wildcard?: string }>
        ) & (
            IsNever<PathParams<Exclude<EndpointPath, NoParam>>["namedParams"]> extends true
                ? Readonly<{ pathParams?: undefined }>
                : PathParams<Exclude<EndpointPath, NoParam>>["namedParams"] extends string
                    ? Readonly<
                        {
                            pathParams: Readonly<
                                Record<PathParams<(...)>["namedParams"], string>,
                            >;
                        },
                    >
                    : Readonly<{ pathParams?: undefined }>
        )

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

    Type Parameters

    • EndpointPath extends string | NoParam