We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9940b8e commit c09c1d8Copy full SHA for c09c1d8
1 file changed
client/common/useSyncFormTranslations.ts
@@ -2,10 +2,8 @@ import { useEffect, MutableRefObject } from 'react';
2
import type { FormApi } from 'final-form';
3
4
// Generic FormLike that mirrors FormApi for any form value type
5
-export type FormLike<FormValues = Record<string, unknown>> = Pick<
6
- FormApi<FormValues>,
7
- 'getState' | 'reset' | 'change'
8
->;
+export interface FormLike<FormValues = Record<string, unknown>>
+ extends Pick<FormApi<FormValues>, 'getState' | 'reset' | 'change'> {}
9
10
/**
11
* This hook ensures that form values are preserved when the language changes.
0 commit comments