-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inferred Types #74
Comments
@luke-cbs since the types are based on the prisma types, could you not just use the pypes from the |
So came across your library to generate the zod schemas for me based of the models and just create a single source of truth. Using the prisma types directly introduces other issues when passing types around that don't match and stuff. So at the moment I take your generated schema's and then just infer them myself. Was just trying to see if we could get that out the box. |
@luke-cbs in the latest version the inferred type is now added by default. It is named after the prima model. No Suffix. |
You are a magician. Thank you |
Issue
I am wanting to generate the inferred type from our Prisma models as well as the Schema itself.
Currently I would have to create the types myself. These could simply just be one to ones of the generated Schema. Not sure if this is already available or I missed something.
The text was updated successfully, but these errors were encountered: