File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface FormRenderProps<S> extends FormState<S> {
15
15
) => Promise < object | undefined > | undefined
16
16
}
17
17
18
- interface FormConfig extends Config {
18
+ interface FormConfig < FormValues > extends Config < FormValues > {
19
19
subscription ?: FormSubscription
20
20
initialValuesEqual ?: ( a : object , b : object ) => boolean
21
21
}
@@ -38,7 +38,7 @@ export interface FieldRenderProps<V = any, T = string> {
38
38
}
39
39
40
40
declare module 'react-final-form-hooks' {
41
- export function useForm < C = FormConfig , S = object > ( config : C ) : FormRenderProps < S >
41
+ export function useForm < S = object > ( config : FormConfig < S > ) : FormRenderProps < S >
42
42
export function useFormState < S = object > (
43
43
form : FormApi < S > ,
44
44
subscription ?: FormSubscription
You can’t perform that action at this time.
0 commit comments