UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

15 lines 765 B
/** * Form field validation — the dual-path validator. * * When the form schema carries a zod shape (`toFormSchema` path), the field's * zod schema executes — precise, schema-authored checks (email, url, enums, * lengths). When the form came from a descriptor (remote or runtime-registered * schemas), validation runs against the lifted metadata instead. * * @module trellis/forms/core */ import { type ZodTypeAny } from 'zod'; import type { FormFieldConfig } from './types.js'; /** Validate one field value against the schema's zod shape or metadata. */ export declare function validateFieldValue(field: FormFieldConfig, value: unknown, zodShape?: Record<string, ZodTypeAny | undefined>): Promise<string | null>; //# sourceMappingURL=validate.d.ts.map