You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the effect of the type alias F is causing reduction in the body of the alias, in particular, I think it's simplifying the return type to the constraint of the conditional 1 | 2. Once this happens, the type parameter X no longer appears in the type and the two signatures are related.
TypeScript Version: 3.4.2
Search Terms:
conditional type
Code
OK
Error
Expected behavior:
The two codes do the same thing
Actual behavior:
Different behavior
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: