Zero effort type-safety #12139
predragnikolic
started this conversation in
Proposals
Replies: 1 comment 3 replies
-
Disclaimer: This proposal here is a next step improvement. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of React Router v7,
React Router uses TypeScript virtual files to accomplish typed routes.
We have a generated file
+types.*
where we import types from.While it is better that it was before, it can be even better!
What if we strip the types and still have full type safety?
If you are interested in how to achieve that,
please take inspiration from https://svelte.dev/blog/zero-config-type-safety (Svelte took inspiration From Next)
Beta Was this translation helpful? Give feedback.
All reactions