UNPKG

apollo-form

Version:
8 lines (7 loc) 418 B
import React from 'react'; import { UseFieldArrayProps, UseFieldArrayParams } from '../hooks/useFieldArray'; export declare type WithFieldArrayProps<Value> = UseFieldArrayProps<Value>; declare function withFieldArray<Value, Props>(props: WithFieldArrayProps<Value>): (Component: React.ComponentType<Props>) => React.FunctionComponent<Props & { field: UseFieldArrayParams<Value>; }>; export default withFieldArray;