@xraph/smartform-react
Version:
React library for rendering and validating SmartForms with shadcn components
6 lines (5 loc) • 342 B
TypeScript
import * as z from "zod";
import { TemplateEngine } from "../template-engine";
import { type FormSchema } from "../core";
export declare const isEmpty: (value: any) => boolean;
export declare const buildValidationSchema: (formSchema: FormSchema, templateEngine?: TemplateEngine, getFormState?: () => Record<string, any>) => z.ZodObject<any>;