Refactoring with TypeScript Discriminated Union Types and Generics
Enhancing Your Refactoring Skills with Practical Examples Using TypeScript’s Discriminated Union Types and Generics
Published in
4 min readFeb 28, 2021
What I love about TypeScript is its Type system. It is practical and feature-rich. Applying the types in the right use cases can make our code cleaner and…