Extra properties on query params cause error
If you provide extra properties (not in the route declaration) to encodeUrl
trout throws the following error:
Uncaught (in promise) TypeError: can't access property "tag", route.queryParamCodecs[k] is undefined
There are two ways to resolve this,
- Use a type-helper like Exact from type-fest, or guard against supplied parameters to ensure they exist in the codecs list before encoding.