UNPKG

@mintlify/validation

Version:

Validates mint.json files

84 lines (83 loc) 1.92 kB
import { z } from 'zod'; export declare const primarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"button">; label: z.ZodString; href: z.ZodString; }, "strip", z.ZodTypeAny, { type: "button"; href: string; label: string; }, { type: "button"; href: string; label: string; }>, z.ZodObject<{ type: z.ZodLiteral<"github">; href: z.ZodString; }, "strip", z.ZodTypeAny, { type: "github"; href: string; }, { type: "github"; href: string; }>]>; export declare const navbarSchema: z.ZodObject<{ links: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; href: z.ZodString; }, "strip", z.ZodTypeAny, { href: string; label: string; }, { href: string; label: string; }>, "many">>; primary: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"button">; label: z.ZodString; href: z.ZodString; }, "strip", z.ZodTypeAny, { type: "button"; href: string; label: string; }, { type: "button"; href: string; label: string; }>, z.ZodObject<{ type: z.ZodLiteral<"github">; href: z.ZodString; }, "strip", z.ZodTypeAny, { type: "github"; href: string; }, { type: "github"; href: string; }>]>>; }, "strip", z.ZodTypeAny, { links?: { href: string; label: string; }[] | undefined; primary?: { type: "button"; href: string; label: string; } | { type: "github"; href: string; } | undefined; }, { links?: { href: string; label: string; }[] | undefined; primary?: { type: "button"; href: string; label: string; } | { type: "github"; href: string; } | undefined; }>;