immer-reducer
Advanced tools
Comparing version 0.7.9 to 0.7.10
@@ -42,3 +42,3 @@ import { Draft } from "immer"; | ||
/** generate reducer function type from the ImmerReducer class */ | ||
interface ImmerReducerFunction<T extends ImmerReducerClass> { | ||
export interface ImmerReducerFunction<T extends ImmerReducerClass> { | ||
(state: ImmerReducerState<T> | undefined, action: ReturnTypeUnion<ActionCreators<T>>): ImmerReducerState<T>; | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "immer-reducer", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/immer-reducer.js", |
# immer-reducer | ||
Create terse type-safe Redux and `useReducer` Hook reducers using [Immer](https://github.com/mweststrate/immer) and Typescript! | ||
Type-safe and terse reducers with Typescript for React Hooks and Redux using [Immer](https://immerjs.github.io/immer/)! | ||
Read an introductory [blog post here](https://medium.com/@esamatti/type-safe-boilerplate-free-redux-906844ec6325). | ||
## 📦 Install | ||
@@ -11,2 +9,4 @@ | ||
You can also install [eslint-plugin-immer-reducer](https://github.com/skoshy/eslint-plugin-immer-reducer) to help you avoid errors when writing your reducer. | ||
## 💪 Motivation | ||
@@ -281,2 +281,4 @@ | ||
It is also recommended to install the ESLint plugin in the "Install" section | ||
to alert you if you accidentally encounter this issue. | ||
@@ -283,0 +285,0 @@ ## 📚 Examples |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29390
411