fix: validation for header

This commit is contained in:
Simon Emanuelsson
2024-09-22 21:22:21 +02:00
parent ac5e48357c
commit 68703d72e1
33 changed files with 453 additions and 404 deletions

View File

@@ -0,0 +1,11 @@
import { z } from "zod"
import {
validateLinkItem,
validateLinksWithType,
validateSecondaryLinks,
} from "@/server/routers/contentstack/base/output"
export type FooterLink = z.output<typeof validateLinkItem>
export type FooterSecondaryNavGroup = z.output<typeof validateSecondaryLinks>
export type FooterLinkWithType = z.output<typeof validateLinksWithType>

View File

@@ -0,0 +1,15 @@
import { z } from "zod"
import {
headerRefsSchema,
headerSchema,
menuItemSchema,
} from "@/server/routers/contentstack/base/output"
export type GetHeaderRefs = z.input<typeof headerRefsSchema>
export type HeaderRefs = NonNullable<z.output<typeof headerRefsSchema>>
export type GetHeader = z.input<typeof headerSchema>
export type Header = z.output<typeof headerSchema>
export type MenuItem = z.output<typeof menuItemSchema>