react-redux-action-dispatchers-hook
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
## 0.0.9-0.0.11 | ||
## 0.0.9-0.0.12 | ||
@@ -3,0 +3,0 @@ rebuild without useMemo and rename to useCreateActionDispatchers (again!) |
@@ -28,7 +28,6 @@ import { useMemo } from 'react' | ||
IAreaState, | ||
TSelector extends (state: IStoreState) => IAreaState | ||
>( | ||
actionCreatorMap: T, | ||
selector: TSelector | ||
) => { | ||
>( | ||
actionCreatorMap: T, | ||
selector: (state: IStoreState) => IAreaState | ||
) => { | ||
const dispatch = useDispatch() | ||
@@ -35,0 +34,0 @@ const properties = useSelector<IStoreState, IAreaState>(selector) |
@@ -6,4 +6,4 @@ import { Dispatch } from 'redux'; | ||
export declare const TransformActions: <T extends Record<keyof T, (...args: any) => any>>(dispatch: Dispatch<import("redux").AnyAction>, actionCreatorMap: T) => IActionsMap<T>; | ||
export declare const useCreateArea: <T extends Record<keyof T, (...args: any) => any>, IStoreState, IAreaState, TSelector extends (state: IStoreState) => IAreaState>(actionCreatorMap: T, selector: TSelector) => IAreaState & IActionsMap<T>; | ||
export declare const useCreateArea: <T extends Record<keyof T, (...args: any) => any>, IStoreState, IAreaState>(actionCreatorMap: T, selector: (state: IStoreState) => IAreaState) => IAreaState & IActionsMap<T>; | ||
declare const useCreateActionDispatchers: <T extends Record<keyof T, (...args: any) => any>>(actionCreatorMap: T) => IActionsMap<T>; | ||
export default useCreateActionDispatchers; |
{ | ||
"name": "react-redux-action-dispatchers-hook", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "transform action creators into action dispatchers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
10178
-0.47%109
-0.91%