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 { fieldSubscriptionItems } from 'final-form'
44import diffSubscription from './diffSubscription'
55import type { FieldSubscription , FieldState } from 'final-form'
6- import type { FieldProps as Props , FieldRenderProps } from './types'
6+ import type { FieldPropsWithForm as Props , FieldRenderProps } from './types'
77import renderComponent from './renderComponent'
88import isReactNative from './isReactNative'
99import getValue from './getValue'
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ export type FormProps = {
7979 RenderableProps<FormRenderProps>
8080
8181export type FieldProps = {
82- reactFinalForm: FormApi,
8382 allowNull?: boolean,
8483 format?: (value: any, name: string) => any,
8584 formatOnBlur?: boolean,
@@ -94,6 +93,10 @@ export type FieldProps = {
9493 component?: React.ComponentType<*> | SupportedInputs
9594 }
9695
96+ export type FieldPropsWithForm = {
97+ reactFinalForm: FormApi
98+ } & FieldProps
99+
97100export type FormSpyProps = {
98101 reactFinalForm: FormApi,
99102 onChange?: (formState: FormState) => void,
You can’t perform that action at this time.
0 commit comments