-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
typeof with extended generic class #18465
Comments
looks like the same issue as #18387. please see #18387 (comment) |
@mhegazy so, you mean this behaviour is correct? |
yes. it is unsafe to substitute a generic constructor with one that is not generic in the general case. you can either change your base class, to be non-generic, or use |
So, in this case you just can't extend React component in that simple way. Pretty common scenario but failed in ts, ok :( |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.4.0+
Code
Expected behavior:
No errors.
Actual behavior:
Error in ts 2.4+ (in 2.3.4 no errors)
The text was updated successfully, but these errors were encountered: