UNPKG

@mintlify/validation

Version:

Validates mint.json files

30 lines (29 loc) 858 B
import { z } from 'zod'; export declare enum ThumbnailAppearance { Light = "light", Dark = "dark" } export declare const thumbnailsSchema: z.ZodObject<{ appearance: z.ZodOptional<z.ZodEnum<[ThumbnailAppearance.Light, ThumbnailAppearance.Dark]>>; background: z.ZodOptional<z.ZodString>; fonts: z.ZodOptional<z.ZodObject<{ family: z.ZodString; }, "strip", z.ZodTypeAny, { family: string; }, { family: string; }>>; }, "strip", z.ZodTypeAny, { background?: string | undefined; appearance?: ThumbnailAppearance | undefined; fonts?: { family: string; } | undefined; }, { background?: string | undefined; appearance?: ThumbnailAppearance | undefined; fonts?: { family: string; } | undefined; }>; export type ThumbnailsConfig = z.infer<typeof thumbnailsSchema>;