UNPKG

zod-to-fields

Version:

Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.

9 lines (8 loc) 223 B
import { z } from 'zod'; declare const setDefaultOptions: (fieldKey: string, fieldValue: z.ZodTypeAny) => { id: string; label: string; name: string; tag: "select" | "input"; }; export { setDefaultOptions };