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

ComponentType is not assignable to parameter of type ComponentClass #6906

Closed
basslagter opened this issue Sep 11, 2019 · 1 comment
Closed

Comments

@basslagter
Copy link

When passing something other than a ComponentClass type (like a FunctionComponent or ComponentType) to the withRouter hoc I get "ComponentType is not assignable to parameter of type ComponentClass" I got this issue when passing in the withTranslation hoc from react-i18next (see: i18next/react-i18next#938).

This issue was introduced when upgrading from Typescript 3.5.3 to the newest 3.6.2.

@timdorr
Copy link
Member

timdorr commented Sep 11, 2019

We don't maintain the types for this library. Please consult the support resources for DefinitelyTyped.

@timdorr timdorr closed this as completed Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants