Update frontend/src/components/tools/flatten/FlattenSettings.tsx

Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
Anthony Stirling 2025-09-04 11:26:17 +01:00 committed by GitHub
parent ac8831e904
commit d56a905c98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import { FlattenParameters } from "../../../hooks/tools/flatten/useFlattenParame
interface FlattenSettingsProps {
parameters: FlattenParameters;
onParameterChange: (key: keyof FlattenParameters, value: boolean) => void;
onParameterChange: <K extends keyof FlattenParameters>(key: K, value: FlattenParameters[K]) => void;
disabled?: boolean;
}