I can\'t understand the logic behind the terms union types and intersection types in TypeScript.
Pragmatically, if the properties of different type
The confusion here probably stems from how we imagine the sets, namely, thinking of the intersection/union as involving the members of types as opposed to the types themselves. I put together a graphic that hopefully clarifies the concept: