Resolves the named-param portion of path params as a flat record of {name: string} entries.
Extracted to avoid re-evaluating NamedPathParams multiple times inside
ExtractPathParams.
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>.
Resolves the named-param portion of path params as a flat record of
{name: string}entries. Extracted to avoid re-evaluatingNamedPathParamsmultiple times inside ExtractPathParams.Tuple wrapping (
[Named] extends [string]) prevents distributive conditional behavior so that a union like'a' | 'b'produces a singleRecord<'a' | 'b', string>instead ofRecord<'a', string> | Record<'b', string>.