@@ -46,7 +46,7 @@ interface AnyObject {
4646export interface FieldRenderProps <
4747 FieldValue ,
4848 T extends HTMLElement = HTMLElement ,
49- InputValue = FieldValue
49+ InputValue = FieldValue ,
5050> {
5151 input : FieldInputProps < InputValue , T > ;
5252 meta : FieldMetaState < FieldValue > ;
@@ -114,7 +114,7 @@ export interface FieldProps<
114114 FieldValue ,
115115 RP extends FieldRenderProps < FieldValue , T , InputValue > ,
116116 T extends HTMLElement = HTMLElement ,
117- InputValue = any
117+ InputValue = FieldValue ,
118118> extends UseFieldConfig < FieldValue , InputValue > ,
119119 RenderableProps < RP > {
120120 name : string ;
@@ -137,49 +137,49 @@ export interface FormSpyProps<
137137
138138export const Field : <
139139 FieldValue = any ,
140+ T extends HTMLElement = HTMLElement ,
141+ InputValue = FieldValue ,
140142 RP extends FieldRenderProps < FieldValue , T , InputValue > = FieldRenderProps <
141143 FieldValue ,
142- HTMLElement ,
143- any
144+ T ,
145+ InputValue
144146 > ,
145- T extends HTMLElement = HTMLElement ,
146- InputValue = any
147147> (
148- props : FieldProps < FieldValue , RP , T , InputValue >
148+ props : FieldProps < FieldValue , RP , T , InputValue > ,
149149) => React . ReactElement ;
150150export const Form : <
151151 FormValues = Record < string , any > ,
152- InitialFormValues = Partial < FormValues >
152+ InitialFormValues = Partial < FormValues > ,
153153> (
154- props : FormProps < FormValues , InitialFormValues >
154+ props : FormProps < FormValues , InitialFormValues > ,
155155) => React . ReactElement ;
156156export const FormSpy : <
157157 FormValues = Record < string , any > ,
158- InitialFormValues = Partial < FormValues >
158+ InitialFormValues = Partial < FormValues > ,
159159> (
160- props : FormSpyProps < FormValues , InitialFormValues >
160+ props : FormSpyProps < FormValues , InitialFormValues > ,
161161) => React . ReactElement ;
162162export function useField <
163163 FieldValue = any ,
164164 T extends HTMLElement = HTMLElement ,
165- InputValue = any
165+ InputValue = FieldValue ,
166166> (
167167 name : string ,
168- config ?: UseFieldConfig < FieldValue , InputValue >
168+ config ?: UseFieldConfig < FieldValue , InputValue > ,
169169) : FieldRenderProps < FieldValue , T , InputValue > ;
170170export function useForm <
171171 FormValues = Record < string , any > ,
172- InitialFormValues = Partial < FormValues >
172+ InitialFormValues = Partial < FormValues > ,
173173> ( componentName ?: string ) : FormApi < FormValues , InitialFormValues > ;
174174export function useFormState <
175175 FormValues = Record < string , any > ,
176- InitialFormValues = Partial < FormValues >
176+ InitialFormValues = Partial < FormValues > ,
177177> (
178- params ?: UseFormStateParams < FormValues , InitialFormValues >
178+ params ?: UseFormStateParams < FormValues , InitialFormValues > ,
179179) : FormState < FormValues , InitialFormValues > ;
180180export function withTypes <
181181 FormValues = Record < string , any > ,
182- InitialFormValues = Partial < FormValues >
182+ InitialFormValues = Partial < FormValues > ,
183183> ( ) : {
184184 Form : React . FC < FormProps < FormValues , InitialFormValues > > ;
185185 FormSpy : React . FC < FormSpyProps < FormValues , InitialFormValues > > ;
0 commit comments