UNPKG

@vtaits/react-hook-form-schema

Version:

Integration of react-hook-form and @vtaits/form-schema

12 lines (9 loc) 364 B
import { ReactNode } from 'react'; import { UseFormReturn, FieldValues } from 'react-hook-form'; import { B as BaseFieldSchema } from './types-7iZNsJ6X.js'; type TemplateSchema = BaseFieldSchema & { renderTemplate: (renderProps: { formResult: UseFormReturn<FieldValues, any, FieldValues>; }) => ReactNode; }; export type { TemplateSchema as T };