UNPKG

prisma-zod-generator

Version:

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

21 lines (20 loc) 740 B
import { GeneratorOptions } from '@prisma/generator-helper'; export declare function generate(options: GeneratorOptions): Promise<void>; /** * A hint tied to something true about *this* schema. * * A blanket feature list gets filtered out on sight. Something that names what is actually in * front of the reader — the number of models they have, the tenant column on every table, the * `@policy` comments they are already writing — is worth the line it takes. Each fires once per * project and never again. */ export declare function chooseUpsellHint(models: readonly { name: string; fields: readonly { name: string; documentation?: string; }[]; }[]): { id: string; lines: string[]; } | null;