How should one use catch all routes in router?
https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes
I think there's no way of doing this zero cost, right?
we should use an abstract type and then convert that type to an internal type like:
type query = String(string) | Array(array<string>)
type router = {
// ...
query: Js.Dict.t<query>,
}
How should one use catch all routes in router?
https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes
I think there's no way of doing this zero cost, right?
we should use an abstract type and then convert that type to an internal type like: