UNPKG

svelte-simple-form

Version:

A lightweight, **type-safe**, and **reactive** form state management hook for **Svelte 5**, featuring:

5 lines (4 loc) 201 B
import { z } from 'zod'; type FlatZodErrors = Record<string, string[]>; export declare function zodValidator<T>(schema: z.ZodTypeAny, formData: T, field?: string | string[]): FlatZodErrors; export {};