UNPKG

426 BTypeScriptView Raw
1import type { FormInstance as RcFormInstance } from 'rc-field-form';
2import type { NamePath, ScrollOptions } from '../interface';
3export interface FormInstance<Values = any> extends RcFormInstance<Values> {
4 scrollToField: (name: NamePath, options?: ScrollOptions) => void;
5 getFieldInstance: (name: NamePath) => any;
6}
7export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];