From spec: Note that type guards affect types of variables and parameters only and have no effect on members of objects such as properties