prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
21 lines (20 loc) • 884 B
TypeScript
/**
* PZG Pro Generator Implementation
*
* This matches the main prisma-zod-generator pattern but loads Pro feature
* modules lazily so the OSS build compiles without the private submodule.
*/
import type { GeneratorOptions } from '@prisma/generator-helper';
import { type LicenseFailureReason } from '../license';
export declare const PRO_HELP_MESSAGE: string;
/**
* Remedy text for the case where the Pro modules *are* installed but the
* license did not validate. Distinct from PRO_HELP_MESSAGE, which tells the
* reader to initialize a git submodule — advice that cannot help an npm
* consumer whose only problem is an unset or expired PZG_LICENSE_KEY.
*/
export declare function buildProLicenseMessage(status: {
reason?: LicenseFailureReason;
detail?: string;
}): string;
export declare function generateProFeatures(options: GeneratorOptions): Promise<void>;