The Power of Discriminated Unions in TypeScript
Stating the problem
As typescript is growing and gaining popularity recently, more and more javascript developers appreciate type safety. The list of features Typescript provides is huge and might be ...