Alex Heitzmann
May 29, 2018 · 1 min read

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.

    Alex Heitzmann

    Written by