Wagner Mwagnerm.hashnode.dev·Aug 22, 2023The Magic of Discriminated Union Types in TypeScriptThis is a handy Typescript trick! In simple terms, I like to describe this feature as conditional types. This feature allows you to do things like the below ApiResponse type, let the code talk for himself // You can assert the property will have a sp...37 readsTypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.