Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
prisma enum types as argument type? - Prisma
P
Prisma
•
2y ago
•
3 replies
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
logType
with Prisma
.
how can I set the type for arg1 by using the enum
logType
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
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Changing Enum types
P
Prisma / help-and-questions
10mo ago
Prisma Enum Mapping
P
Prisma / help-and-questions
2y ago
Prisma Types
P
Prisma / help-and-questions
2y ago
Prisma type inference is returning weird types
P
Prisma / help-and-questions
2y ago