UNPKG

@abyrd9/zod-form-data

Version:

Type-safe Zod v4 utilities to flatten and unflatten data, parse FormData, and collect schema-aligned errors.

6 lines 426 B
import type * as z4 from "zod/v4/core"; import type { NestedFieldErrors } from "./flatten-zod-form-errors"; import type { DeepPartial } from "./deep-partial"; import type { FlattenedFormErrors } from "./schema-paths"; export declare function unflattenZodFormErrors<T extends z4.$ZodType>(errors: FlattenedFormErrors<T>, root?: string): DeepPartial<NestedFieldErrors<T>>; //# sourceMappingURL=unflatten-zod-form-errors.d.ts.map