/*MenuTask*/
const MenuTaskConnected = connect(mapStateToProps)(MenuTask);
export default MenuTaskConnected;
/*TaskMain*/
const TaskMainConnected = connect(mapStateToProps)(TaskMain);
export default TaskMainConnected;
import {withRouter} from 'react-router-dom';
//.....
//.....
export default connect(mapStateToProps)(withRouter(MenuTask));
export default connect(mapStateToProps)(withRouter(MenuTask));
export type ApiResponse =
| { prop1: 'text', prop2: 'text', prop3: 'text' }
| { prop4: 'text', prop5: 'text', prop6: 'text' }
| { prop7: 'text', prop8: 'text', prop9: 'text' };
{ prop1: 'text', prop2: 'text', prop3: 'text' }
нет.