Intersection types Purpose of this post is to get a basic understanding of intersection types and realize pros and cons of intersection types. Last time we talked about union types: let x: string | number; Variable x can be either string or a number. Consequently, you can use type guarding technique to exclude one of […]