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

Improve typing file to be more accurate when using HOC #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

soda0289
Copy link

Current the types remove some of the props typings when using the HOC. For example I have components that return functions instead of elements. Since children is not part of the Prop type it did not get copied over. Same thing will happen with static types as well.

I copied the types that react-redux is using which seem to work better. We could also add some tests but would need typescript installed in the repo.

Current the types remove some of the props typings when using the HOC.
@soda0289 soda0289 changed the title Fix typing file to be more accurate when using HOC Improve typing file to be more accurate when using HOC Aug 13, 2019
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

Successfully merging this pull request may close these issues.

2 participants