@@ -22,13 +22,13 @@ export type FieldMetaState = Omit<
2222  'blur'  |  'change'  |  'focus'  |  'name'  |  'value' 
2323> ; 
2424
25- interface  FieldInputProps < T  extends  HTMLElement >  { 
25+ interface  FieldInputProps < FieldValue ,   T  extends  HTMLElement >  { 
2626  name : string ; 
2727  onBlur : ( event ?: React . FocusEvent < T > )  =>  void ; 
2828  onChange : ( event : React . ChangeEvent < T >  |  any )  =>  void ; 
2929  onFocus : ( event ?: React . FocusEvent < T > )  =>  void ; 
3030  type ?: string ; 
31-   value : any ; 
31+   value : FieldValue ; 
3232  checked ?: boolean ; 
3333  multiple ?: boolean ; 
3434} 
@@ -37,8 +37,8 @@ interface AnyObject {
3737  [ key : string ] : any ; 
3838} 
3939
40- export  interface  FieldRenderProps < T  extends  HTMLElement >  { 
41-   input : FieldInputProps < T > ; 
40+ export  interface  FieldRenderProps < FieldValue ,   T  extends  HTMLElement >  { 
41+   input : FieldInputProps < FieldValue ,   T > ; 
4242  meta : FieldMetaState ; 
4343} 
4444
@@ -90,7 +90,7 @@ export interface UseFieldConfig<FieldValue> {
9090
9191export  interface  FieldProps < FieldValue ,  T  extends  HTMLElement > 
9292  extends  UseFieldConfig < FieldValue > , 
93-     RenderableProps < FieldRenderProps < T > >  { 
93+     RenderableProps < FieldRenderProps < FieldValue ,   T > >  { 
9494  name : string ; 
9595  [ otherProp : string ] : any ; 
9696} 
@@ -116,7 +116,7 @@ export const FormSpy: <FormValues = AnyObject>(
116116export  function  useField < FieldValue  =  any ,  T  extends  HTMLElement  =  HTMLElement > ( 
117117  name : string , 
118118  config ?: UseFieldConfig < FieldValue > 
119- ) : FieldRenderProps < T > ; 
119+ ) : FieldRenderProps < FieldValue ,   T > ; 
120120export  function  useForm < FormValues  =  AnyObject > ( 
121121  componentName ?: string 
122122) : FormApi < FormValues > ; 
0 commit comments