Skip to content

Commit ec750d0

Browse files
author
keenondrums
committed
Fix typings
1 parent 254a712 commit ec750d0

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Consider using it with [flux-action-class](https://github.com/keenondrums/flux-a
3232

3333
1. Run
3434
```
35-
npm i reducer-class
35+
npm i reducer-class immer
3636
```
3737
1. If you use TypeScript set in you tsconfig.json
3838

@@ -41,11 +41,13 @@ Consider using it with [flux-action-class](https://github.com/keenondrums/flux-a
4141
"emitDecoratorMetadata": true,
4242
```
4343

44+
1. If you use JavaScript configure your babel to support decorators
45+
4446
### React
4547

4648
1. Run
4749
```
48-
npm i reducer-class reflect-metadata
50+
npm i reducer-class immer reflect-metadata
4951
```
5052
1. At the top of your project root file (most probably `index.tsx`) add
5153
```ts
@@ -58,6 +60,8 @@ Consider using it with [flux-action-class](https://github.com/keenondrums/flux-a
5860
"emitDecoratorMetadata": true,
5961
```
6062

63+
1. If you use JavaScript configure your babel to support decorators
64+
6165
## Quick start
6266

6367
### Recommended

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reducer-class",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Boilerplate free class-based reducer creator. Built with TypeScript. Works with Redux and NGRX. Has integration with immer.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -43,13 +43,14 @@
4343
"tslint": "^5.12.1",
4444
"tslint-config-prettier": "^1.17.0",
4545
"tslint-config-standard": "^8.0.1",
46-
"typelevel-ts": "^0.3.5",
4746
"typescript": "^3.2.4"
4847
},
4948
"dependencies": {
50-
"redux-create-reducer": "^1.1.3"
49+
"redux-create-reducer": "^1.1.3",
50+
"typelevel-ts": "^0.3.5"
5151
},
5252
"peerDependencies": {
53-
"reflect-metadata": "^0.1.13"
53+
"reflect-metadata": "^0.1.13",
54+
"immer": "^1.11.0"
5455
}
5556
}

0 commit comments

Comments
 (0)