import { PrismaClient } from '@prisma/client' ; async function main ( ) { const prisma = new PrismaClient ( ) ; prisma . $use ( async ( params , next ) => { params . args ; params . dataPath ; params . action ; params . model as 'user' | 'Post' | 'MachineData' | 'Like' | undefined ; params . runInTransaction ; return next ( params ) ; } ) ; } main ( ) . catch ( ( e ) => { console . error ( e ) ; } ) ;