UNPKG

@gzued/antd-compiled

Version:

Pre-bundled Ant Design 4.x and related dependencies for @gzued packages

8 lines (7 loc) 456 B
import type { FormInstance as RcFormInstance } from '@gzued/antd-compiled/compiled/rc-field-form'; import type { NamePath, ScrollOptions } from '../interface'; export interface FormInstance<Values = any> extends RcFormInstance<Values> { scrollToField: (name: NamePath, options?: ScrollOptions) => void; getFieldInstance: (name: NamePath) => any; } export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];