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

    Type Alias ResolveNamedParams<Named>

    ResolveNamedParams: IsNever<Named> extends true
        ? Readonly<{ pathParams?: undefined }>
        : [Named] extends [string]
            ? Readonly<{ pathParams: Readonly<Record<Named, string>> }>
            : Readonly<{ pathParams?: undefined }>

    Resolves the pathParams portion of path params. Extracted to avoid re-evaluating NamedPathParams multiple times inside ConstructPathParams.

    Tuple wrapping ([Named] extends [string]) prevents distributive conditional behavior so that a union like 'a' | 'b' produces a single Record<'a' | 'b', string> instead of Record<'a', string> | Record<'b', string>.

    Type Parameters

    • Named extends string