prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
12 lines (11 loc) • 599 B
TypeScript
import { DMMF } from '@prisma/generator-helper';
export declare const isAggregateInputType: (name: string) => boolean;
export declare function addMissingInputObjectTypesForAggregate(inputObjectTypes: DMMF.InputType[], outputObjectTypes: DMMF.OutputType[]): void;
/**
* Check if aggregate operations should be generated for a model
*/
export declare function shouldGenerateAggregateForModel(modelName: string): boolean;
/**
* Filter aggregate input types based on model and operation filtering
*/
export declare function filterAggregateInputTypes(inputTypes: DMMF.InputType[]): DMMF.InputType[];