The Power of Discriminated Unions and Exhaustiveness Checking in Typescript

In this blog post, I will explain what discriminated unions are and why they are so powerful. In addition, I will share a real world use case that I encountered: setting up a request/response infrastructure around websockets. Read more