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
{{ message }}
Repository navigation
narrowing an undefined | A property not working anymore #10169
The issue here is that the checker thinks node.type !== undefined might be a discriminant type guard, so it resets other type guards for properties of the form node.xxx. A workaround would be to reverse the two type guards (but of course you'll then have the same problem for node.type).
Activity
ahejlsberg commentedon Aug 5, 2016
The issue here is that the checker thinks
node.type !== undefinedmight be a discriminant type guard, so it resets other type guards for properties of the formnode.xxx. A workaround would be to reverse the two type guards (but of course you'll then have the same problem fornode.type).