forked from pu428f3pz/InternshipProject
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
757 B
16 lines
757 B
import * as React from 'react';
|
|
import { FormInstance as RcFormInstance } from 'rc-field-form';
|
|
import { ScrollOptions, NamePath, InternalNamePath } from '../interface';
|
|
export interface FormInstance<Values = any> extends RcFormInstance<Values> {
|
|
scrollToField: (name: NamePath, options?: ScrollOptions) => void;
|
|
/** This is an internal usage. Do not use in your prod */
|
|
__INTERNAL__: {
|
|
/** No! Do not use this in your code! */
|
|
name?: string;
|
|
/** No! Do not use this in your code! */
|
|
itemRef: (name: InternalNamePath) => (node: React.ReactElement) => void;
|
|
};
|
|
getFieldInstance: (name: NamePath) => any;
|
|
}
|
|
export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];
|