/** * Shared Prisma → Zod type mapping * * Extracted from generate.ts and trpc-generator.ts to eliminate duplication. * This is the canonical Prisma-to-Zod mapping used across all code generators. * * TEACHING NOTE: The REST route generator (generate.ts) and tRPC generator * both need to emit Zod validators from Prisma scalar types. Keeping one * map ensures consistency — e.g., both handle BigInt and Bytes identically. */ /** * Map of Prisma scalar types → Zod validator expressions (as strings). * * These are emitted verbatim in generated code like: * `title: z.string(),` * `views: z.number().int(),` */ export declare const PRISMA_TO_ZOD: Record; /** * Look up the Zod validator for a Prisma type. * Falls back to `z.unknown()` for unrecognised types. */ export declare function mapPrismaTypeToZod(prismaType: string): string; //# sourceMappingURL=type-maps.d.ts.map