Export Transaction type #12436
Labels
kind/feature
A request for a new feature.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
Problem
When using "Custom models" and "Interactive Transactions" #8664 you may want to call some operations on model and pass in current transaction. For type safety and to be consistent with latest prisma version you need a
Transaction
type:Currently there is no way to pick this type from
PrismaClient.$transaction
and you forced to redefine it, that can became inconsistent with new prisma versions:Suggested solution
Add
Transaction
type somewhere where it will be possible to import it:The text was updated successfully, but these errors were encountered: