Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper to derive React component props types from mapStateToProps / mapDispatchToProps #81

Closed
tlaitinen opened this issue Jun 9, 2018 · 2 comments

Comments

@tlaitinen
Copy link

I experimented a bit with using conditional types to derive React component props types from mapStateToProps and mapDispatchToProps (I named them fromState and actions for brevity). The proof-of-concept with an example is available at https://github.com/tlaitinen/react-redux-typed-connect . Does something like this already exist?

@sylvanaar
Copy link

Typescript 3.0 claims to add a related feature. microsoft/TypeScript#24422

@piotrwitek
Copy link
Owner

Closing because not actionable.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants