UNPKG

apollo-form

Version:
8 lines (7 loc) 373 B
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;