File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ import { version as rffVersion } from 'react-final-form'
1010import diffSubscription from './diffSubscription'
1111import type { FieldSubscription , FieldState , FieldValidator } from 'final-form'
1212import type { Mutators } from 'final-form-arrays'
13- import type { FieldArrayProps as Props } from './types'
13+ import type { FieldArrayPropsWithForm as Props } from './types'
1414import renderComponent from './renderComponent'
1515import { withReactFinalForm } from 'react-final-form'
16- export const version = '1 .0.6 '
16+ export const version = '2 .0.1 '
1717
1818const versions = {
1919 'final-form' : ffVersion ,
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ export type FieldArrayProps = {
4444 name: string,
4545 subscription?: FieldSubscription,
4646 isEqual?: (any, any) => boolean,
47- validate?: (value: ?(any[]), allValues: Object) => ?any,
48- reactFinalForm: FormApi
47+ validate?: (value: ?(any[]), allValues: Object) => ?any
4948} & RenderableProps<FieldArrayRenderProps>
49+
50+ export type FieldArrayPropsWithForm = {
51+ reactFinalForm: FormApi
52+ } & FieldArrayProps
You can’t perform that action at this time.
0 commit comments