UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

20 lines (19 loc) 849 B
import { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface'; import InternalForm, { useForm, FormInstance, FormProps } from './Form'; import Item, { FormItemProps } from './FormItem'; import ErrorList, { ErrorListProps } from './ErrorList'; import List, { FormListProps } from './FormList'; import { FormProvider } from './context'; declare type InternalFormType = typeof InternalForm; interface FormInterface extends InternalFormType { useForm: typeof useForm; Item: typeof Item; List: typeof List; ErrorList: typeof ErrorList; Provider: typeof FormProvider; /** @deprecated Only for warning usage. Do not use. */ create: () => void; } declare const Form: FormInterface; export { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, }; export default Form;