Skip to content

Comments

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

Open
soda0289 wants to merge 1 commit intonayaabkhan:masterfrom
soda0289:fix-typings
Open

Improve typing file to be more accurate when using HOC#30
soda0289 wants to merge 1 commit intonayaabkhan:masterfrom
soda0289:fix-typings

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