Skip to content

ObjectLikeZodType

type ObjectLikeZodType = ZodType<Record<string, unknown>>;

Constrains a Zod schema to types whose output is an object (record of key-value pairs).

This is broader than ZodObject — it also accepts discriminated unions, unions of objects, intersections, and other Zod types that produce object outputs.