add type definition for missing third parameter "allFields" to onFieldsChange (introduced

(_Implementation_ of this parameter had been added in 16133aac65 )
This commit is contained in:
Sebastian Busch 2018-06-11 11:12:50 +02:00 committed by 偏右
parent 99cad890ef
commit 619b0ed628

View File

@ -10,7 +10,7 @@ import { FIELD_META_PROP, FIELD_DATA_PROP } from './constants';
import { Omit } from '../_util/type';
export interface FormCreateOption<T> {
onFieldsChange?: (props: T, fields: Array<any>) => void;
onFieldsChange?: (props: T, fields: Array<any>, allFields: any, add: string) => void;
onValuesChange?: (props: T, changedValues: any, allValues: any) => void;
mapPropsToFields?: (props: T) => void;
withRef?: boolean;