File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as React from 'react'
33import { formSubscriptionItems } from 'final-form'
44import diffSubscription from './diffSubscription'
55import renderComponent from './renderComponent'
6- import type { FormSpyProps as Props , FormSpyRenderProps } from './types'
6+ import type { FormSpyPropsWithForm as Props , FormSpyRenderProps } from './types'
77import type { FormState } from 'final-form'
88import isSyntheticEvent from './isSyntheticEvent'
99import { all } from './ReactFinalForm'
Original file line number Diff line number Diff line change @@ -98,7 +98,10 @@ export type FieldPropsWithForm = {
9898} & FieldProps
9999
100100export type FormSpyProps = {
101- reactFinalForm: FormApi,
102101 onChange?: (formState: FormState) => void,
103102 subscription?: FormSubscription
104103} & RenderableProps<FormSpyRenderProps>
104+
105+ export type FormSpyPropsWithForm = {
106+ reactFinalForm: FormApi
107+ } & FormSpyProps
You can’t perform that action at this time.
0 commit comments