Skip to content

Commit

Permalink
add type definition for missing third parameter "allFields" to onFiel…
Browse files Browse the repository at this point in the history
…dsChange (introduced

(_Implementation_ of this parameter had been added in ant-design@16133aa )
  • Loading branch information
sbusch authored and afc163 committed Jun 12, 2018
1 parent 99cad89 commit 619b0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 619b0ed

Please sign in to comment.