End-to-End TypeScript: Database, Backend, API, and Frontend #4017
stereobooster
started this conversation in
Ideas
Replies: 2 comments
-
cc @fabien0102 👋 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This would be nice! Adding ts-rest to the list of alternatives, which has already solved the API<->Frontend part for NestJS, Express, and Fastify, but not Adonis unfortunately. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Inspired by:
Idea: provide end-to-end type checks.
Basic:
Advanced:
But this is just a basic idea, we can imagine something more advanced. For example, if we use OpenAPI. From OpenAPI we can generate:
Request
,Response
)server validator
)client validator
)Links
Database to TS
Related: https://trello.com/c/to3ncEjK/43-introspect-database-to-generate-update-models
TypeScript Runtime Data Validators
OpenAPI to TS
Alternatives
Related
Beta Was this translation helpful? Give feedback.
All reactions