We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a998f5 commit 4c06b13Copy full SHA for 4c06b13
src/index.d.ts
@@ -15,7 +15,7 @@ export interface FormRenderProps<S> extends FormState<S> {
15
) => Promise<object | undefined> | undefined
16
}
17
18
-interface FormConfig extends Config {
+interface FormConfig<FormValues> extends Config<FormValues> {
19
subscription?: FormSubscription
20
initialValuesEqual?: (a: object, b: object) => boolean
21
@@ -38,7 +38,7 @@ export interface FieldRenderProps<V = any, T = string> {
38
39
40
declare module 'react-final-form-hooks' {
41
- export function useForm<C = FormConfig, S = object>(config: C): FormRenderProps<S>
+ export function useForm<S = object>(config: FormConfig<S>): FormRenderProps<S>
42
export function useFormState<S = object>(
43
form: FormApi<S>,
44
0 commit comments