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