This commit is contained in:
EdamAmex 2024-12-20 07:10:35 +00:00
parent 3981dc4bd1
commit 461635a06b

View file

@ -17,7 +17,7 @@ export function useForm<T extends Record<string, any>>(initialState: T, save: (n
const currentState = reactive<T>(copy(initialState)); const currentState = reactive<T>(copy(initialState));
const previousState = reactive<T>(copy(initialState)); const previousState = reactive<T>(copy(initialState));
const modifiedStates = reactive<Record<keyof T, boolean> | {}>({}); const modifiedStates = reactive<Record<keyof T, boolean> | Record<string, never>>({});
for (const key in currentState) { for (const key in currentState) {
modifiedStates[key] = false; modifiedStates[key] = false;
} }