prisma-trpc-generator
Version:
Prisma 2+ generator to emit fully implemented tRPC routers
24 lines (23 loc) • 1.27 kB
TypeScript
import { z } from 'zod';
export declare const configSchema: z.ZodObject<{
withMiddleware: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
true: "true";
false: "false";
}>, z.ZodTransform<any, "true" | "false">>, z.ZodDefault<z.ZodString>]>>;
withShield: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
true: "true";
false: "false";
}>, z.ZodTransform<any, "true" | "false">>, z.ZodDefault<z.ZodString>]>>;
withZod: z.ZodDefault<z.ZodPipe<z.ZodEnum<{
true: "true";
false: "false";
}>, z.ZodTransform<any, "true" | "false">>>;
contextPath: z.ZodDefault<z.ZodString>;
trpcOptionsPath: z.ZodOptional<z.ZodString>;
showModelNameInProcedure: z.ZodDefault<z.ZodPipe<z.ZodEnum<{
true: "true";
false: "false";
}>, z.ZodTransform<any, "true" | "false">>>;
generateModelActions: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<("findFirst" | "findFirstOrThrow" | "findMany" | "findUnique" | "findUniqueOrThrow" | "create" | "createMany" | "update" | "updateMany" | "upsert" | "delete" | "deleteMany" | "aggregate" | "groupBy" | "count" | "findRaw" | "aggregateRaw")[], string>>;
}, z.core.$strip>;
export type Config = z.infer<typeof configSchema>;