Quantcast
Channel: fettblog.eu | TypeScript, JavaScript, Jamstack
Viewing all articles
Browse latest Browse all 203

TypeScript: Union to intersection type

$
0
0

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.


Viewing all articles
Browse latest Browse all 203

Trending Articles