Itay Wolfish

Itay Wolfish

Subscribe to my newsletter and never miss my upcoming articles

Typescript Unions and Discriminating Unions

Dec 8, 20203 min read

I really really like typescript .... really. A subject I would like to write about today is Union types. And how to discriminate Unions with literal type, it's a technique I use a lot in my work when working on possible states of the application (Bac...