ckastbjerg / next-type-safe-routes

Never should your users experience broken links again!
MIT License
70 stars 5 forks source link

Creates malformed type if route param contains a dash #14

Closed osdiab closed 3 years ago

osdiab commented 3 years ago

it created this route, for instance:

{ route: "/countries/[encoded-country]", params: { encoded-country: string | number }, query?: Query }

The created type ought to have quotes to avoid this (~and i guess if a route has quotes in it, it should probably escape the quotes too~ looks like quotes are not allowed in query parameters at all so that's fine)