File tree 2 files changed +7
-4
lines changed
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'
10
10
import diffSubscription from './diffSubscription'
11
11
import type { FieldSubscription , FieldState , FieldValidator } from 'final-form'
12
12
import type { Mutators } from 'final-form-arrays'
13
- import type { FieldArrayProps as Props } from './types'
13
+ import type { FieldArrayPropsWithForm as Props } from './types'
14
14
import renderComponent from './renderComponent'
15
15
import { withReactFinalForm } from 'react-final-form'
16
- export const version = '1 .0.6 '
16
+ export const version = '2 .0.1 '
17
17
18
18
const versions = {
19
19
'final-form' : ffVersion ,
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ export type FieldArrayProps = {
44
44
name: string,
45
45
subscription?: FieldSubscription,
46
46
isEqual?: (any, any) => boolean,
47
- validate?: (value: ?(any[]), allValues: Object) => ?any,
48
- reactFinalForm: FormApi
47
+ validate?: (value: ?(any[]), allValues: Object) => ?any
49
48
} & RenderableProps<FieldArrayRenderProps>
49
+
50
+ export type FieldArrayPropsWithForm = {
51
+ reactFinalForm: FormApi
52
+ } & FieldArrayProps
You can’t perform that action at this time.
0 commit comments