redux-actions-helper
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -62,2 +62,8 @@ 'use strict'; | ||
creator.toString = (0, _createActionPrefix.getActionName)(actionName); | ||
Object.defineProperties(creator, { | ||
name: { | ||
value: actionName, | ||
writable: false | ||
} | ||
}); | ||
Object.assign(creator, multiActions); | ||
@@ -64,0 +70,0 @@ return creator; |
{ | ||
"name": "redux-actions-helper", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -38,2 +38,8 @@ import isFunction from 'lodash/isFunction' | ||
creator.toString = getActionName(actionName) | ||
Object.defineProperties(creator, { | ||
name: { | ||
value: actionName, | ||
writable: false, | ||
} | ||
}) | ||
Object.assign(creator,multiActions) | ||
@@ -40,0 +46,0 @@ return creator; |
@@ -65,8 +65,4 @@ export interface IBaseAction { | ||
export function handleActions<State>( | ||
reducerMap: IReducerMap<State, {}>, | ||
initialState: State, | ||
): Reducer<State, {}> | ||
export function handleActions<State, Payload>( | ||
export function handleActions<State, Payload={}>( | ||
reducerMap: IReducerMap<State, Payload>, | ||
@@ -76,11 +72,5 @@ initialState: State, | ||
export function linstenActions<State>( | ||
reducerMapListener: () => IReducerMap<State, {}>, | ||
initialState: State, | ||
): Reducer<State, {}> | ||
export function linstenActions<State, Payload>( | ||
export function linstenActions<State, Payload={}>( | ||
reducerMapListener: () => IReducerMap<State, Payload>, | ||
initialState: State, | ||
): Reducer<State, Payload> |
529
20789