-
Notifications
You must be signed in to change notification settings - Fork 12.8k
A extends B relation break after wrapping by extra interface #39549
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
Comments
Regressed sometime between 3.3 and 3.5 |
is there any update on this? |
So, the example as given is fixed, but not for the right reasons. Now type ShouldBeTrueAsWell = ISChild<CustomElement<{age: string}>, CustomElement<FieldValues>> // type false the issue still repros. The root cause is that we measure all of The fix is simple to put together - mark conditional check type positions as |
I think the OP being fixed is sufficient to close this. |
TypeScript Version: 3.9.2
Search Terms: subtypes, extends
Expected behavior: {name: "age"} extends {name: string} so A extends B
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: