P
Prisma4mo ago
ted

prisma enum types as argument type?

i've got this function:
export async function log(arg1) {
// logic
}
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
Jump to solution
1 Reply
Solution
ted
ted4mo ago
turns out because I was using amonorepo I needed to export * from my prisma db file, and import the type from the package
Want results from more Discord servers?
Add your server