Hello I am trying to extract the properties of an object like this:
const combinedReducers = {
markers: markersReducer, // () => MarkType
mapCenter: setMapCenter // () => CenterType
}
The problem is I don't want to do it individually per property. And second issue is that the properties are functions that return something, and I want the type of that. It would be something like this
interface Props {
markers: MarkType,
center: CenterType
}
Is this even possible? Thank You.