When dealing with return data from React events, you might need to cast the data back to the original.
<InputMultiSelect
value={chosenDataStorageUnit.map(f => f.value)}
/>
<InputMultiSelect
value={chosenDataStorageUnit.map(f => f.value as string)}
/>
Set the type for useState functions. Extend functional component with Router and Translation Types.
export type FiltersModalProps = {
updateIsFiltersModalOpen: Dispatch<SetStateAction<boolean>>;
} & RouteComponentProps & WithTranslation;
function FiltersModalComponent({updateIsFiltersModalOpen}: FiltersModalProps) {
return <div/>
}
export const FiltersModal = withTranslation()(
withRouter(FiltersModalComponent),
);