DEV Community

Discussion on: Control flow analysis of aliased conditional expressions in TypeScript

Collapse
 
anthonyjoeseph profile image
Anthony G

Ah amazing! Your playground explains it really well. I guess my issue wasn't really related to your article 😅 - I hadn't realized that unions can only discriminate on literal types. Amazing that baz can be narrowed by foo - powerful stuff!