next-type-safe-routes
next-type-safe-routes copied to clipboard
Exclude `undefined` query params
Right now if you do something like this:
getRoute({
route: '/my-page',
query: {
thing: undefined,
}
});
You get this:
/my-page?thing=undefined
Would it make sense to just exclude or strip out query params that are undefined?