@muzikanto/observable-form
Version:
Form state manager
8 lines (7 loc) • 391 B
TypeScript
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;