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
This conditional type is distributive because there is a naked type parameter in the check clause. A distributive conditional type will evaluate to never when the check type is instantiated to never, so it is not possible to immediately resolve this to true.
To get the desired behaviour make the conditional type non-distributive like so:
TypeScript Version: 3.0.0-dev.201xxxxx
Search Terms: conditional type inference generic
Code
Expected behavior: correct type inference:
type Result = true
Actual behavior: type inference not performed at all
Playground Link: link
The text was updated successfully, but these errors were encountered: