Building type utils to derive interfaces from unions of interfaces in TypeScript
In this post, we're going to build small, generic type utils in TypeScript, and we'll do that by refactoring code from real world example.
We're going to pick an approach leveraging template literals, and type inference to provide a nice developer experience.
We're going to pick an approach leveraging template literals, and type inference to provide a nice developer experience.