UNPKG

prisma-zod-generator

Version:

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

13 lines (12 loc) 726 B
import { ConnectorType, DMMF } from '@prisma/generator-helper'; interface AddMissingInputObjectTypeOptions { isGenerateSelect: boolean; isGenerateInclude: boolean; exportTypedSchemas: boolean; exportZodSchemas: boolean; typedSchemaSuffix: string; zodSchemaSuffix: string; } export declare function addMissingInputObjectTypes(inputObjectTypes: DMMF.InputType[], outputObjectTypes: DMMF.OutputType[], models: DMMF.Model[], modelOperations: DMMF.ModelMapping[], dataSourceProvider: ConnectorType, options: AddMissingInputObjectTypeOptions): void; export declare function resolveAddMissingInputObjectTypeOptions(generatorConfigOptions: Record<string, string>): AddMissingInputObjectTypeOptions; export {};