UNPKG

@vtaits/react-hook-form-schema

Version:

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

13 lines (10 loc) 408 B
import { ReactNode } from 'react'; import { UseFormReturn, FieldValues } from 'react-hook-form'; import { F as FieldSchemaWithRenderBase } from './types-XL-2FxMV.js'; type FormApi = UseFormReturn<FieldValues, any, FieldValues>; type BaseFieldSchema = FieldSchemaWithRenderBase & { hint?: ReactNode; autoFocus?: boolean; label?: ReactNode; }; export type { BaseFieldSchema as B, FormApi as F };