Skip to content
HomePagesHomePages template kit

DocumentFormatSchema

Zod twin of `DocumentFormat`: a strict union, so a mixed physical/pixel object or a pixel sheet carrying `dpi`/`bleed` matches no branch.

Zod twin of DocumentFormat: a strict union, so a mixed physical/pixel object or a pixel sheet carrying dpi/bleed matches no branch. The 72–600 dpi window matches the manifest parse rules.

Import from @homepages/template-kit.

const DocumentFormatSchema: z.ZodUnion<readonly [z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; id: z.ZodString; label: z.ZodString; category: z.ZodEnum<{ website: "website"; "social-post": "social-post"; story: "story"; brochure: "brochure"; flyer: "flyer"; postcard: "postcard"; presentation: "presentation"; }>; preset: z.ZodOptional<z.ZodString>; }, z.core.$strict>, z.ZodObject<{ width: z.ZodString; height: z.ZodString; dpi: z.ZodNumber; bleed: z.ZodOptional<z.ZodString>; id: z.ZodString; label: z.ZodString; category: z.ZodEnum<{ website: "website"; "social-post": "social-post"; story: "story"; brochure: "brochure"; flyer: "flyer"; postcard: "postcard"; presentation: "presentation"; }>; preset: z.ZodOptional<z.ZodString>; }, z.core.$strict>]>