Hi Helio,

Try

export default connect<StateProps, DispatchProps, {}>(mapStateToProps, mapDispatchToProps)(PhotoGallery)

I would think that {} would be inferred as the default for the TOwnProps type parameter of the connect function, but if that’s not happening for some reason specifying it explicitly should do the trick.

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store