t3-oss / create-t3-app

The best way to start a full-stack, typesafe Next.js app
https://create.t3.gg
MIT License
25.65k stars 1.18k forks source link

feat: route level typesafety #1754

Open adex-codez opened 10 months ago

adex-codez commented 10 months ago

Is your feature request related to a problem? Please describe.

This is not really a problem but I would like to see this implemented because it would give us autocomplete capabilities, reduce runtime errors because a URL given is not found and I also think it would fit into the type safety capability the create-t3-app provides

Describe the solution you'd like to see

The solution I would like to see is adding the next-typesafe-url package and giving the options to use it or not

Describe alternate solutions

Implementing route level typesafety

Additional information

No response

raymondkneipp commented 7 months ago

I have been using typedRoutes - https://nextjs.org/docs/app/api-reference/next-config-js/typedRoutes