TypeScript · Type Narrowing · Senior · Debugging
Why does narrowing fail after assigning to a variable?
Short Interview Answer
Aliasing can invalidate narrowing if TS can't prove the alias is unchanged.
Detailed Explanation
Inline checks or use const + careful patterns. Known footgun with property stores.