apollo-form
Version:
Form state manager
8 lines (7 loc) • 418 B
TypeScript
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;