Roman Veselý Software Engineer from Slovakia. Somewhere between trees and bytes of code.

Log #0019

In TypeScript, the difference between union types and intersection types can be counter-intuitive at first glance. Ryan Cavanaugh gave a great explanation: “the union of the domain of values produces an intersected set of properties and vice versa.”