
TypeScript Union vs Intersection Types: What A | B and A & B Really Mean
What do A | B and A & B mean? A union A | B means "a value of type A or type B". An intersection A & B means "a value that is type A and type B at the same time". The names are easy to read, but the r









