redux-starter-kit
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "redux-starter-kit", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "A simple set of tools to make using Redux easier", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/markerikson/redux-starter-kit", |
@@ -49,3 +49,3 @@ import createNextState, { Draft } from 'immer' | ||
actionsMap: CaseReducersMapObject<S, A> | ||
): Reducer<S, A> { | ||
): Reducer<S> { | ||
return function(state = initialState, action): S { | ||
@@ -57,5 +57,5 @@ // @ts-ignore createNextState() produces an Immutable<Draft<S>> rather | ||
const caseReducer = actionsMap[action.type] | ||
return caseReducer ? caseReducer(draft, action) : undefined | ||
return caseReducer ? caseReducer(draft, action as A) : undefined | ||
}) | ||
} | ||
} |
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
202472