Type that accepts either a Zod schema or a plain object of Zod schemas. The plain object will be auto-wrapped with z.object().
// Explicit Zod schemaconst explicit: SchemaInput = z.object({ name: z.string() });// Plain object (will be auto-wrapped)const inline: SchemaInput = { name: z.string() }; Copy
// Explicit Zod schemaconst explicit: SchemaInput = z.object({ name: z.string() });// Plain object (will be auto-wrapped)const inline: SchemaInput = { name: z.string() };
Type that accepts either a Zod schema or a plain object of Zod schemas. The plain object will be auto-wrapped with z.object().