Replies: 1 comment
-
|
Hey! 👋🏻 Thanks for the feedback! AdonisJS 7 significantly improves end-to-end type safety across the HTTP layer. A lot of work has gone into making request and response types more reliable, reducing duplication between backend and frontend, and enabling truly type-safe clients. So while this can feel limiting today, this is largely addressed in v7, which is coming very soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Model in front-end and back-end are different:
Since some property are serialized to different types, the model type in front-end has to be:
Currently we have write User model type twice: one for back-end, one for front-end.
If we can have some sort of TypeScript utility extract serialized model types:
That will save a lot of efforts.
Beta Was this translation helpful? Give feedback.
All reactions