PrismaP
Prisma2y ago
3 replies
Ted

prisma enum types as argument type?

i've got this function:

export async function log(arg1) {
  // logic
}


i also have the enum logType with Prisma.

how can I set the type for arg1 by using the enum logType?
Solution
turns out because I was using amonorepo I needed to export * from my prisma db file, and import the type from the package
Was this page helpful?