@@ -147,12 +147,7 @@ export function enhance<DbClient extends object>(prisma: DbClient, context?: Enh
147
147
148
148
private createLogicalPrismaImports ( prismaImport : string , logicalPrismaClientDir : string ) {
149
149
return `import { Prisma as _Prisma, PrismaClient as _PrismaClient } from '${ prismaImport } ';
150
- import type {
151
- InternalArgs,
152
- TypeMapDef,
153
- TypeMapCbDef,
154
- DynamicClientExtensionThis,
155
- } from '${ prismaImport } /runtime/library';
150
+ import type { InternalArgs, DynamicClientExtensionThis } from '${ prismaImport } /runtime/library';
156
151
import type * as _P from '${ logicalPrismaClientDir } /index-fixed';
157
152
import type { Prisma, PrismaClient } from '${ logicalPrismaClientDir } /index-fixed';
158
153
` ;
@@ -173,11 +168,11 @@ export function enhance<ExtArgs extends Record<string, any> & InternalArgs>(
173
168
} ;
174
169
175
170
// overload for extended PrismaClient
176
- export function enhance<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any> & InternalArgs${
177
- hasClientOptions ? ', ClientOptions' : ''
178
- } >(
179
- prisma: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs ${ hasClientOptions ? ', ClientOptions' : '' } >,
180
- context?: EnhancementContext<${ authTypeParam } >, options?: EnhancementOptions): DynamicClientExtensionThis<Prisma.TypeMap, Prisma.TypeMapCb, ExtArgs${
171
+ export function enhance<ExtArgs extends Record<string, any> & InternalArgs${ hasClientOptions ? ', ClientOptions' : '' } >(
172
+ prisma: DynamicClientExtensionThis<_Prisma.TypeMap<ExtArgs>, _Prisma.TypeMapCb, ExtArgs ${
173
+ hasClientOptions ? ', ClientOptions' : ''
174
+ } >,
175
+ context?: EnhancementContext<${ authTypeParam } >, options?: EnhancementOptions): DynamicClientExtensionThis<Prisma.TypeMap<ExtArgs> , Prisma.TypeMapCb, ExtArgs${
181
176
hasClientOptions ? ', ClientOptions' : ''
182
177
} >${ this . generatePermissionChecker ? ' & ModelCheckers' : '' } ;
183
178
0 commit comments