apollo-form
Version:
Form state manager
8 lines (7 loc) • 373 B
TypeScript
import { UseFieldProps, UseFieldParams } from '../hooks/useField';
import React from 'react';
export declare type WithFieldProps<Value> = UseFieldProps<Value>;
declare function withField<Value, Props>(props: WithFieldProps<Value>): (Component: React.ComponentType<Props>) => React.FunctionComponent<Props & {
field: UseFieldParams<Value>;
}>;
export default withField;