Skip to content
HomePagesHomePages template kit

SectionSchema

Zod schema for a section's full authored `schema.ts` declaration: `meta`, its `slots` record, and a build-derived `slot_order` never written by an author directly.

Zod schema for a section’s full authored schema.ts declaration: meta, its slots record, and a build-derived slot_order never written by an author directly.

Import from @homepages/template-kit.

const SectionSchema: z.ZodObject<{ meta: z.ZodObject<{ displayName: z.ZodString; anchor: z.ZodOptional<z.ZodString>; groups: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; members: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>; }, z.core.$strict>>>; display: z.ZodOptional<z.ZodType<DisplayShape, DisplayShape, z.core.$ZodTypeInternals<DisplayShape, DisplayShape>>>; }, z.core.$strict>; slots: z.ZodRecord<z.ZodString, z.ZodType<Slot, Slot, z.core.$ZodTypeInternals<Slot, Slot>>>; slot_order: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$strict>