re-reduced
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -0,5 +1,5 @@ | ||
import { MapStateToPropsFactory } from "react-redux"; | ||
import { ActionCreator } from "./core"; | ||
import { Tree } from "./helpers/objects"; | ||
export declare type Dispatcher<T = any> = (payload: T) => void; | ||
export declare type StateToProps<TState, TProps> = (state: TState) => TProps; | ||
/** | ||
@@ -13,4 +13,4 @@ * connectWithActions | ||
*/ | ||
export declare function connectWithActions<TProps, TActions extends Tree<ActionCreator<any>> = {}, TState = {}>(actions: TActions, mapStateToProps?: StateToProps<TState, Partial<TProps>>): import("react-redux").InferableComponentEnhancerWithProps<Partial<TProps> & { | ||
export declare function connectWithActions<TProps, TActions extends Tree<ActionCreator<any>> = {}, TState = {}, TOwnProps = {}>(actions: TActions, mapStateToProps?: MapStateToPropsFactory<TProps, TOwnProps, TState>): import("react-redux").InferableComponentEnhancerWithProps<TProps & { | ||
actions: Tree<ActionCreator<any>>; | ||
}, {}>; | ||
}, TOwnProps>; |
{ | ||
"name": "re-reduced", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "A utility toolbelt that reduces boilerplate from your react/redux app", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
32300
284