Skip to content

Commit c09c1d8

Browse files
committed
client/common/useSyncFormTranslations: correct type definition syntax to interface
1 parent 9940b8e commit c09c1d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client/common/useSyncFormTranslations.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import { useEffect, MutableRefObject } from 'react';
22
import type { FormApi } from 'final-form';
33

44
// 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-
>;
5+
export interface FormLike<FormValues = Record<string, unknown>>
6+
extends Pick<FormApi<FormValues>, 'getState' | 'reset' | 'change'> {}
97

108
/**
119
* This hook ensures that form values are preserved when the language changes.

0 commit comments

Comments
 (0)