Skip to content

Instantly share code, notes, and snippets.

@mkusher
Created September 6, 2016 10:59
Show Gist options
  • Save mkusher/2493b57dffbfb6cd7b636f2d29158efc to your computer and use it in GitHub Desktop.
Save mkusher/2493b57dffbfb6cd7b636f2d29158efc to your computer and use it in GitHub Desktop.
declare module "react-redux" {
export type Connect<State> = {
<P>(
mapStateToProps?: MapStateToPropsWithKnownState<State>,
mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject,
mergeProps?: MergeProps,
options?: Options
): ComponentConstructDecorator<P>;
}
interface MapStateToPropsWithKnownState<State> {
(state: State, ownProps?: any): any;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment