Is there any automated way to export the type definitions of my models generated with prisma generate but without the database CRUD methods? Then I could export them as a model module and use type definitions on client-side.
Export server-side Prisma models for client-side usage
690 views Asked by Teodoro At
1
You can use Pal.Js CLI to generate TypeScript definitions from your
schema.prismafile and use in any placethen run
will generate typescript file for you have all models and enums
Docs here