import { createContext } from 'react' ; import { FieldArrayRenderProps } from 'react-final-form-arrays' ; see { ArrayInput } see https export const ArrayInputContext = createContext < ArrayInputContextValue > ( undefined ) ; export type ArrayInputContextValue = FieldArrayRenderProps < any , HTMLElement > ;