Background: remix-routes package codegens you a typesafe method $path that you can use for typesafe routing. In addition to this you can give your route typesafe search params by exporting a SearchParams type.
A couple of awesome things this could enable:
trigger a route:build script directly from the SearchParams object in the route file.
Add the the search params type to the list of options to generate for the route.
this would be pretty cool to add but I haven't really looked into the package deeply, I would welcome a contribution, otherwise I'll try to get to it, but no promises
Background:
remix-routes
package codegens you a typesafe method$path
that you can use for typesafe routing. In addition to this you can give your route typesafe search params by exporting aSearchParams
type.A couple of awesome things this could enable: