Providing and receiving types through inertia #2197
Lazerbeak12345
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some server backends (such as Django with Django React Framework) can automatically generate json schemas for rest API endpoints. It'd be really cool to use something like https://www.npmjs.com/package/json-schema-to-typescript to send these types to the frontend during development and compilation.
This would allow for a singular source of truth for both incoming and outgoing inertia payload types, and would bring the experience a bit closer to nuxt.js, for example.
Beta Was this translation helpful? Give feedback.
All reactions