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
+4-4
Original file line number
Diff line number
Diff line change
@@ -179,11 +179,11 @@ export default ({
179
179
Different projects have different needs, and conventions vary across teams, and this is why `typesafe-actions` was designed with flexibility in mind. It provides three different major styles so you can choose whichever would be the best fit for your team.
180
180
181
181
#### 1. Basic actions
182
-
`action` and `createAction` are creators that can create **actions** with predefined properties ({ type, payload, meta }). This make them concise but also opinionated.
182
+
`action` and `createAction` are creators that can create **actions** with predefined properties ({ type, payload, meta }). This makes them concise but also opinionated.
183
183
184
184
Important property is that resulting **action-creator** will have a variadic number of arguments and preserve their semantic names `(id, title, amount, etc...)`.
185
185
186
-
This two creators are very similar and the only real difference is that `action`**WILL NOT WORK** with **action-helpers**.
186
+
These two creators are very similar and the only real difference is that `action`**WILL NOT WORK** with **action-helpers**.
#### Using createReducer API with type-free syntax
361
361
362
-
We can prevent a lot of boilerplate code and type errors using this powerfull and completely typesafe API.
362
+
We can prevent a lot of boilerplate code and type errors using this powerful and completely typesafe API.
363
363
364
364
Using handleAction chain API:
365
365
```ts
@@ -1356,7 +1356,7 @@ Existing solutions in the wild have been either **too verbose because of redunda
1356
1356
1357
1357
**So I created `typesafe-actions` to address all of the above pain points.**
1358
1358
1359
-
The core idea was to design an API that would mostly use the power of TypeScript **type-inference** 💪 to lift the "maintainability burden" of type annotations. In addition, I wanted to make it "look and feel" as close as possible to the idiomatic JavaScript ❤️ , so we don't have to write the redundant type annotations that which will create additional noise in your code.
1359
+
The core idea was to design an API that would mostly use the power of TypeScript **type-inference** 💪 to lift the "maintainability burden" of type annotations. In addition, I wanted to make it "look and feel" as close as possible to the idiomatic JavaScript ❤️ , so we don't have to write the redundant type annotations that will create additional noise in your code.
0 commit comments