Skip to content

Commit 1402d43

Browse files
author
keenondrums
committed
Fix typos
1 parent f30181d commit 1402d43

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"typescript.tsdk": "node_modules\\typescript\\lib"
2+
"typescript.tsdk": "node_modules\\typescript\\lib",
3+
"spellright.language": ["en"],
4+
"spellright.documentTypes": ["markdown", "latex", "plaintext"]
35
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class ReducerCat extends ReducerClass {
210210
const reducer = ReducerCat.create()
211211
```
212212

213-
> We can not use `ActionReflect` in JavaScript because there's no complie which provides us with metadata for type reflection.
213+
> We can not use `ActionReflect` in JavaScript because there's no compiler which provides us with metadata for type reflection.
214214
215215
> Be aware, you have to configure [babel](https://babeljs.io/) to provide you with decorator syntax.
216216
@@ -250,7 +250,7 @@ const reducer = ReducerCat.create()
250250

251251
If your reducer expects 3 arguments `reducer-class` automatically wraps it with `produce` from [immer](https://github.com/mweststrate/immer).
252252

253-
1. Original readonly state
253+
1. Original read-only state
254254
1. Draft of the new state that you should mutate
255255
1. Action
256256

@@ -292,7 +292,7 @@ const reducer = ReducerCat.create()
292292

293293
### When to use `@ActionReflect`
294294

295-
You can use `@ActionReflect` if you want to run a reducer function for a single action. **Works with TypeScript only!** Action must be a class-based action. It can be a flux-action-class' action, a classic NGRX class-based action or any other class which has eaither a static property `type` or a property `type` on the instance of the class.
295+
You can use `@ActionReflect` if you want to run a reducer function for a single action. **Works with TypeScript only!** Action must be a class-based action. It can be a flux-action-class' action, a classic NGRX class-based action or any other class which has either a static property `type` or a property `type` on the instance of the class.
296296

297297
### Running several reducers for the same action
298298

@@ -339,6 +339,6 @@ console.log(res2) // logs 135: 130 - previous value, 5 is added by addEnergy
339339
## How does it compare to [ngrx-actions](https://github.com/amcdnl/ngrx-actions)?
340340

341341
1. Stricter typings. Now you'll never forget to add initial state, return a new state from your reducer and accidentally invoke `immer` as a result and etc.
342-
1. `@ActionReflect` can be used to automaticaly reflect a corresponding action from the type.
342+
1. `@ActionReflect` can be used to automatically reflect a corresponding action from the type.
343343
1. `ngrx-actions` doesn't allow matching several reducers to the same action, while `reducer-class` allows you to do that and merges them for you.
344344
1. `reducer-class` is built with both worlds, Angular and Redux, in mind. It means equal support for both of them!

0 commit comments

Comments
 (0)