You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-11
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ _"This guide is a **living compendium** documenting the most important patterns
8
8
9
9
:star:_Found it useful? Want more updates?_[**Show your support by giving a :star:**](https://github.com/piotrwitek/react-redux-typescript-guide/stargazers)
10
10
11
-
:tada:_Now updated to support **TypeScript v3.1**_:tada:
11
+
:tada:_Now updated to support **TypeScript v3.4**_:tada:
12
12
13
13
<ahref="https://www.buymeacoffee.com/zh9guxbA5">
14
14
<imgsrc="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png"alt="Buy Me a Coffee">
@@ -73,7 +73,8 @@ Issues can be funded by anyone interested in them being resolved. Reward will be
73
73
-[Action Creators](#action-creators)
74
74
-[Reducers](#reducers)
75
75
-[State with Type-level Immutability](#state-with-type-level-immutability)
> We'll be using a battle-tested library [](https://www.npmjs.com/package/typesafe-actions)
1102
1108
that'll help retain complete type soundness and simplify maintenace of **types in Redux Architectures** [`typesafe-actions`](https://github.com/piotrwitek/typesafe-actions#typesafe-actions)
1103
1109
1104
-
> You can find more real-world examples and in-depth tutorial in: [Typesafe-Actions - The Mighty Tutorial](https://github.com/piotrwitek/typesafe-actions#behold-the-mighty-tutorial)!
1110
+
> You can find more real-world examples and in-depth tutorial in: [Typesafe-Actions - Tutorial](https://github.com/piotrwitek/typesafe-actions#tutorial)!
1105
1111
1106
1112
A solution below is using a simple factory function to automate the creation of type-safe action creators. The goal is to decrease maintenance effort and reduce code repetition of type annotations for actions and creators. The result is completely typesafe action-creators and their actions.
1107
1113
@@ -1229,15 +1235,19 @@ import { Todo, TodosFilter } from './models';
Copy file name to clipboardExpand all lines: README_SOURCE.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ _"This guide is a **living compendium** documenting the most important patterns
8
8
9
9
:star:_Found it useful? Want more updates?_[**Show your support by giving a :star:**](https://github.com/piotrwitek/react-redux-typescript-guide/stargazers)
10
10
11
-
:tada:_Now updated to support **TypeScript v3.1**_:tada:
11
+
:tada:_Now updated to support **TypeScript v3.4**_:tada:
12
12
13
13
<ahref="https://www.buymeacoffee.com/zh9guxbA5">
14
14
<imgsrc="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png"alt="Buy Me a Coffee">
@@ -73,7 +73,8 @@ Issues can be funded by anyone interested in them being resolved. Reward will be
73
73
-[Action Creators](#action-creators)
74
74
-[Reducers](#reducers)
75
75
-[State with Type-level Immutability](#state-with-type-level-immutability)
-[Typing reducer with `typesafe-actions`](#typing-reducer-with-typesafe-actions)
77
78
-[Testing reducer](#testing-reducer)
78
79
-[Async Flow with `redux-observable`](#async-flow-with-redux-observable)
79
80
-[Typing Epics](#typing-epics)
@@ -396,7 +397,7 @@ When creating a store instance we don't need to provide any additional types. It
396
397
> We'll be using a battle-tested library [](https://www.npmjs.com/package/typesafe-actions)
397
398
that'll help retain complete type soundness and simplify maintenace of **types in Redux Architectures** [`typesafe-actions`](https://github.com/piotrwitek/typesafe-actions#typesafe-actions)
398
399
399
-
> You can find more real-world examples and in-depth tutorial in: [Typesafe-Actions - The Mighty Tutorial](https://github.com/piotrwitek/typesafe-actions#behold-the-mighty-tutorial)!
400
+
> You can find more real-world examples and in-depth tutorial in: [Typesafe-Actions - Tutorial](https://github.com/piotrwitek/typesafe-actions#tutorial)!
400
401
401
402
A solution below is using a simple factory function to automate the creation of type-safe action creators. The goal is to decrease maintenance effort and reduce code repetition of type annotations for actions and creators. The result is completely typesafe action-creators and their actions.
0 commit comments