-
-
Couldn't load subscription status.
- Fork 126
Closed
Description
DynamicClientExtensionThis
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:
const prisma = new PrismaClient()
const db = enhance(prisma)
db.user.find() // <-- db.user is properly typedWith Enhanced client:
const prisma = new PrismaClient().$extends({})
const db = enhance(prisma)
db.user.find() // <-- db.user is anyOriginally posted by @genu in #2171 (comment)
ymc9
Metadata
Metadata
Assignees
Labels
No labels