You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making the fix @genu ! These types can indeed be imported directly from "@prisma/client/runtime/library" instead. The code changes look good to me, and I'll make some minor tweaks and add a test then merge.
Thank you!
@ymc9 From my observation, this partly resolved the issue.
type inference is lost when using prisma extensions:
constprisma=newPrismaClient()constdb=enhance(prisma)db.user.find()// <-- db.user is properly typed
With Enhanced client:
constprisma=newPrismaClient().$extends({})constdb=enhance(prisma)db.user.find()// <-- db.user is any