diff --git a/packages/simple-form/src/get-form-manager.ts b/packages/simple-form/src/get-form-manager.ts index 9ed1063..6af126a 100644 --- a/packages/simple-form/src/get-form-manager.ts +++ b/packages/simple-form/src/get-form-manager.ts @@ -67,7 +67,7 @@ export const getFormManager = (formDefinition: ReturnType(formState: FormState, fieldName return values; }; -export const getModifiedFieldValues = >(initialFieldValues: T, fieldValues: T) => { +export const getModifiedFieldValues = >(initialFieldValues: T, fieldValues: T) => { const initialFieldValueEntries = new Map(Object.entries(initialFieldValues)); const fieldValueEntries = Object.entries(fieldValues); return Object.fromEntries( @@ -82,5 +82,5 @@ export const getModifiedFieldValues = >(initia const initialValue = initialFieldValueEntries.get(key); return !isEqual(value, initialValue); }) - ); + ) as Partial; };