Open AlexRMU opened 11 months ago
https://kit.svelte.dev/docs/modules#sveltejs-kit-resolvepath is a step towards the first item on your list.
It's not a complete solution (e.g. no type checking that the route ID actually exists in the current app), but once some of the other issues you linked are done, it should work nicely. I agree that better support for type-safe route url creation would be great.
I see the solution to this issue like this (excluding https://github.com/sveltejs/kit/issues/647):
https://nextjs.org/docs/app/building-your-application/configuring/typescript#statically-typed-links https://github.com/tatethurston/nextjs-routes https://github.com/jagaapple/next-typed-routes https://github.com/ckastbjerg/next-type-safe-routes https://dev.to/qaynam/trying-out-type-safe-navigation-in-sveltekit-jk4 https://github.com/victorgarciaesgi/nuxt-typed-router https://router.vuejs.org/guide/advanced/typed-routes https://github.com/fenok/react-router-typesafe-routes https://github.com/zilch/type-route https://github.com/JacobFischer/ts-typed-routes https://github.com/fongandrew/typed-routes https://tanstack.com/router/latest https://intervene.dev/guide/typed-routes/ https://docs.expo.dev/router/reference/typed-routes/
Describe the problem
.
Describe the proposed solution
I think it is necessary to add such functions :
Alternatives considered
No response
Importance
nice to have
Additional Information
It is necessary to take into account: