@abyrd9/zod-form-data
Version:
Type-safe Zod v4 utilities to flatten and unflatten data, parse FormData, and collect schema-aligned errors.
9 lines • 453 B
TypeScript
import * as z4 from "zod/v4/core";
import { z } from "zod/v4";
/**
* Creates a Zod schema that matches the NestedFieldErrors structure
* This converts each field in your schema to an optional nullable string
* matching what parseZodFormData returns as errors
*/
export declare function createZodFormDataErrorSchema<T extends z4.$ZodType>(schema: T): z.ZodType<Record<string, unknown>>;
//# sourceMappingURL=create-zod-form-data-error-schema.d.ts.map