I'm working on a library to generate fake data for...
# orm-help
k
I'm working on a library to generate fake data for tests through prisma. I'm taking inspiration from
factory-girl
if you're familiar. First roadblock, how do I get a union type of all Prisma models? I see
Prisma.ModelName
which is cool. But when I try to do
Copy code
type PrismaModel = Prisma[Prisma.ModelName]