Recently, I had to convert a union type into an intersection type. Working on a helper type UnionToIntersection<T>
has taught me a ton of things on conditional types and strict function types, which I want to share with you.
↧
TypeScript: Union to intersection type
↧