zod-auto-form
Version:
Auto-generate typed React forms from Zod schemas
4 lines (3 loc) • 395 B
TypeScript
import type { ComponentContextTypeKeys } from "../../types/base-components";
export type SupportedFieldType = "string" | "number" | "boolean" | "array" | "object" | "select" | "multi-select" | "date" | "textarea" | "switch" | "radio" | "array-string" | "array-number" | "array-boolean" | "array-date";
export declare function getComponentKey(type: SupportedFieldType): ComponentContextTypeKeys;