Skip to content
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

Disable Type Generation and Only Generate Zod Schemas #313

Open
ashfahan opened this issue Feb 11, 2025 · 0 comments
Open

Disable Type Generation and Only Generate Zod Schemas #313

ashfahan opened this issue Feb 11, 2025 · 0 comments

Comments

@ashfahan
Copy link

ashfahan commented Feb 11, 2025

Is your feature request related to a problem? Please describe.

I'm using zod-prisma-types to generate Zod schemas from my Prisma models, but I don't need the TypeScript types that are also generated. This leads to unnecessary duplicate types in project as prisma client also export the types itself.

Describe the solution you'd like

I would like an option (e.g., a CLI flag or config setting) to disable only the TypeScript type generation while still generating the Zod schemas.

Describe alternatives you've considered

I am using the zod-prisma library instead for generating schemas, but I prefer the approach provided by zod-prisma-types and would like to use it without the extra TypeScript types.

Additional context

If there's already a way to achieve this, could you provide guidance on how to do it? If not, would it be possible to add this feature in a future update?

Thanks for the awesome library! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant