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

Fix AnyComponent with ComponentConstructor #1249

Merged

Conversation

scurker
Copy link
Contributor

@scurker scurker commented Nov 2, 2018

AnyComponent should be allowed to be a functional or class component.

Updated the typescript definition to allow for a component constructor and added a check to one of the typescript tests.

@scurker scurker changed the title fix AnyComponent with ComponentConstructor Fix AnyComponent with ComponentConstructor Nov 2, 2018
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 42c92b6 on scurker:typescript/any-component into cd807ce on developit:master.

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you so much 👍 The tests are much appreciated 💯

@tassoevan
Copy link

@marvinhagemeister Why was it reverted?

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.

None yet

5 participants