diff --git a/packages/schema/src/plugins/enhancer/enhance/index.ts b/packages/schema/src/plugins/enhancer/enhance/index.ts index 585d35cb1..5fb7429a1 100644 --- a/packages/schema/src/plugins/enhancer/enhance/index.ts +++ b/packages/schema/src/plugins/enhancer/enhance/index.ts @@ -207,6 +207,13 @@ ${ return `import { Prisma, type PrismaClient } from '${prismaImport}'; import type * as _P from '${prismaImport}'; export type { PrismaClient }; + +/** + * Infers the type of PrismaClient with ZenStack's enhancements. + * @example + * type EnhancedPrismaClient = Enhanced; + */ +export type Enhanced = Client; `; }