UNPKG

prisma-zod-generator

Version:

Prisma 2+ generator to emit Zod schemas from your Prisma schema

21 lines (20 loc) 673 B
/** * PZG Pro Zod Performance Pack * * Generate ultra-fast precompiled validators for hot paths * AST-based optimizations and streaming validation for large datasets */ export interface PerformancePackConfig { outputPath?: string; hotPaths?: string[]; enableStreaming?: boolean; enablePrecompilation?: boolean; enableBatching?: boolean; optimizationLevel?: 'basic' | 'aggressive' | 'extreme'; generateBenchmarks?: boolean; targetSize?: 'small' | 'medium' | 'large'; } /** * Generate high-performance Zod validators */ export declare function generatePerformancePack(schemaPath: string, config?: PerformancePackConfig): Promise<void>;