drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Ability to generate database typescript type file based on schemas
Open
drizzle/kit
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Describe what you want
- When using drizzle in a standalone backend, we need database types on the front end to be type-safe.
- InferModel does not work for separate frontend and backend.
- If we can have a utility function something like `drizzle-kit generate:types` which generates a typescript file with database types based on schemas, that will be great because otherwise we have to write these types manually and we can make mistakes in doing so.
- This is inspired by Supabase types generation functionality
Contributor guide
Assessment
This issue has not been assessed yet.