Skip to content

Instantly share code, notes, and snippets.

@stepancar
Created March 17, 2016 11:57
Show Gist options
  • Save stepancar/76e442ec2a4855926988 to your computer and use it in GitHub Desktop.
Save stepancar/76e442ec2a4855926988 to your computer and use it in GitHub Desktop.
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>;
export function connectS<P,T extends constructorof<ElementClass<P,any>>>(componentType:T, mapStateToProps?: MapStateToProps<P>,
mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject,
mergeProps?: MergeProps,
options?: Options): T;
@stepancar
Copy link
Author

export var Test = connectS(SearchResult, select);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment