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
strictNullChecks is needed for this code to work because we can't rule out null or undefined as hasError values and thus can't narrow in the remainder of the function body
TypeScript Version: nightly (2.2.0-dev.201xxxxx)
Code
The following does not work
But the following does:
Expected behavior:
No error in both examples
Proof
BTW. Just wanted to say ... not related to this ... loving mapped types. So .. much .. power 🌹
The text was updated successfully, but these errors were encountered: