UNPKG

@conform-to/zod

Version:

Conform helpers for integrating with Zod

11 lines 449 B
import type { ZodAny } from 'zod/v4'; import type { ValidationAttributes } from '@conform-to/dom/future'; /** * Type guard to check if a value is a Zod v4 schema. */ export declare function isSchema(schema: unknown): schema is ZodAny; /** * Extracts HTML validation attributes from a Zod v4 schema. */ export declare function getConstraints(schema: unknown): Record<string, ValidationAttributes> | undefined; //# sourceMappingURL=schema.d.ts.map