Created
March 17, 2016 11:57
-
-
Save stepancar/76e442ec2a4855926988 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function connect<P,S,T extends constructorof<ElementClass<P,S>>>(mapStateToProps?: MapStateToProps<P>, | |
mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject, | |
mergeProps?: MergeProps, | |
options?: Options): ClassDecorator<P,S,T>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function connectS<P,T extends constructorof<ElementClass<P,any>>>(componentType:T, mapStateToProps?: MapStateToProps<P>, | |
mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject, | |
mergeProps?: MergeProps, | |
options?: Options): T; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export var Test = connectS(SearchResult, select);