Recently, I came across a TypeScript code snippet that looked something like this:
type Point = PartialPointX & { y: number; };
It got me thinking about the differences between '&' and '|' in TypeScript. While I know that '&' represents "and" and '|' represents "or" in JavaScript, do they function differently in TypeScript?