UNPKG

baldrick-broth

Version:
19 lines (18 loc) 608 B
/** * Responsibilities: Centralized field validators using Zod. * - Provides common string shapes and helpers like customKey, title, url, path */ import { z } from 'zod'; export declare const stringy: { customKey: z.ZodString; varValue: z.ZodString; title: z.ZodString; description: z.ZodString; motivation: z.ZodString; url: z.ZodURL; path: z.ZodString; propPath: z.ZodString; promptMessage: z.ZodString; choice: z.ZodString; }; export declare const safeParseField: (name: "title" | "filename" | string, content: unknown) => string | z.ZodSafeParseResult<string>;