Skip to content
This repository was archived by the owner on Jan 21, 2018. It is now read-only.

Commit b6aae52

Browse files
committed
More types
1 parent 794d92a commit b6aae52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Counter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ type DispatchProps = {
2727

2828
type Props = OwnProps & StateProps & DispatchProps;
2929

30-
const mapStateToProps = (state: State) => ({
30+
const mapStateToProps = (state: State): StateProps => ({
3131
counter: state.ui.counter,
3232
});
3333

34-
const mapDispatchToProps = (dispatch: Dispatch) => ({
34+
const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({
3535
increase: () => {
3636
dispatch(increase());
3737
},

0 commit comments

Comments
 (0)