drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Ability to generate database typescript type file based on schemas

Open
#1,096 12 comments 13 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.