From d25dffe1e17f2fca657ee3c662c7202deaa0f28b Mon Sep 17 00:00:00 2001 From: JeongUkJae Date: Fri, 14 Dec 2018 15:06:18 +0900 Subject: [PATCH] highlights a code block in docs/markdown/1_react.md --- README.md | 2 +- docs/markdown/1_react.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a261b9..1463201 100644 --- a/README.md +++ b/README.md @@ -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) => ({ onIncrement: () => dispatch(actions.increment()), }); diff --git a/docs/markdown/1_react.md b/docs/markdown/1_react.md index 393a241..aefa957 100644 --- a/docs/markdown/1_react.md +++ b/docs/markdown/1_react.md @@ -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) => ({ onIncrement: () => dispatch(actions.increment()), });