UNPKG

@muzikanto/observable-form

Version:
8 lines (7 loc) 391 B
import React from 'react'; import { FieldArrayParams, IUseFieldArrayProps } from './useFieldArray'; export interface WithFieldArray<Value> { field: FieldArrayParams<Value>; } declare function withFieldArray<Value, Props>(props: IUseFieldArrayProps<Value>): (Component: React.ComponentType<Props>) => React.FunctionComponent<Props & WithFieldArray<Value>>; export default withFieldArray;