// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/42ce1506a3943be47e0e421e39c35f552c0cdf3a/react-redux/react-redux.d.ts declare namespace ReactRedux { type ComponentClass
= __React.ComponentClass
; type StatelessComponent
= __React.StatelessComponent
;
type ReactNode = __React.ReactNode;
type Store |StatelessComponent )>(component: TComponentConstruct): TComponentConstruct;
}
/**
* Connects a React component to a Redux store.
*
* - Without arguments, just wraps the component, without changing the behavior / props
*
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
* is to override ownProps (as stated in the docs), so what remains is everything that's
* not a state or dispatch prop
*
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
* should be valid component props, because it depends on mergeProps implementation.
* As such, it is the user's responsibility to extend ownProps interface from state or
* dispatch props or both when applicable
*
* @param mapStateToProps
* @param mapDispatchToProps
* @param mergeProps
* @param options
*/
export function connect(): InferableComponentDecorator;
export function connect = Redux.Store;
type Dispatch = Redux.Dispatch;
type ActionCreator = Redux.ActionCreator;
interface ComponentDecorator