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
+46-73Lines changed: 46 additions & 73 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,9 @@ _"This guide is a **living compendium** documenting the most important patterns
28
28
You should check Playground Project located in the `/playground` folder. It is a source of all the code examples found in the guide. They are all tested with the most recent version of TypeScript and 3rd party type definitions (like `@types/react` or `@types/react-redux`) to ensure the examples are up-to-date and not broken with updated definitions.
29
29
> Playground was created is such a way, that you can simply clone the repository locally and immediately play around on your own to learn all the examples from this guide in a real project environment without the need to create some complicated environment setup by yourself.
30
30
31
+
### Contribution Guide
32
+
[CONTRIBUTION.md](/CONTRIBUTION.md)
33
+
31
34
---
32
35
33
36
## Table of Contents
@@ -60,7 +63,6 @@ You should check Playground Project located in the `/playground` folder. It is a
A solution below is using simple factory function to automate the creation of type-safe action creators. The goal is to reduce the maintainability and code repetition of type annotations for actions and creators and the result is completely typesafe action-creators and their actions.
### For more examples and in-depth explanation you should read [The Mighty Tutorial](https://github.com/piotrwitek/typesafe-actions#behold-the-mighty-tutorial) to learn it all the easy way!
filter(isOfType(todosConstants.ADD)), // action is narrowed to: { type: "ADD_TODO"; payload: string; }
1066
1056
tap(action=> {
1067
-
console.log(
1057
+
logger.log(
1068
1058
`action type must be equal: ${todosConstants.ADD} === ${action.type}`
1069
1059
);
1070
1060
}),
@@ -1447,33 +1437,16 @@ class StatefulCounter extends React.Component<Props, State> {
1447
1437
1448
1438
---
1449
1439
1450
-
# Contribution Guide
1451
-
- Don't edit `README.md` - it is built with `generator` script from separate `.md` files located in the `/docs/markdown` folder, edit them instead
1452
-
- For code snippets, they are also injected by `generator` script from the source files located in the playground folder (this step make sure all examples are type-checked and linted), edit them instead
1453
-
> look for include directives in `.md` files that look like this: `::[example|usage]='../../playground/src/components/sfc-counter.tsx'::`
Copy file name to clipboardExpand all lines: docs/markdown/_intro.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,3 +27,6 @@ _"This guide is a **living compendium** documenting the most important patterns
27
27
28
28
You should check Playground Project located in the `/playground` folder. It is a source of all the code examples found in the guide. They are all tested with the most recent version of TypeScript and 3rd party type definitions (like `@types/react` or `@types/react-redux`) to ensure the examples are up-to-date and not broken with updated definitions.
29
29
> Playground was created is such a way, that you can simply clone the repository locally and immediately play around on your own to learn all the examples from this guide in a real project environment without the need to create some complicated environment setup by yourself.
0 commit comments