Skip to content

Types: UrlParamsWriting<TUrl>

ts
type UrlParamsWriting<TUrl> = ToUrlParamsWriting<TUrl["params"]>;

Extracts combined types of path and query parameters for a given url, creating a unified parameter object. Differs from ExtractRouteParamTypesReading in that optional params with defaults will remain optional.

Type Parameters

Type ParameterDescription
TUrl extends UrlThe url type from which to extract and merge parameter types.

Returns

A record of parameter names to their respective types, extracted and merged from both path and query parameters.