Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
> If there is any progress or fix in regard to the above caveat I'll update the guide and make an announcement on my twitter/medium (There are a few existing proposals already).

> There is alternative way to retain type soundness but it requires an explicit wrapping with `dispatch` and will be very tedious for the long run. See example below:
```
```ts
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
onIncrement: () => dispatch(actions.increment()),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/markdown/1_react.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
> If there is any progress or fix in regard to the above caveat I'll update the guide and make an announcement on my twitter/medium (There are a few existing proposals already).

> There is alternative way to retain type soundness but it requires an explicit wrapping with `dispatch` and will be very tedious for the long run. See example below:
```
```ts
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
onIncrement: () => dispatch(actions.increment()),
});
Expand Down