Union Types in TypeScript
Introduction
What do you do when you want a variable to be able to take more than one type? You use union type. Union types enable you to create a variable that can take a combination of more than one type.
Ideally, you would want to define a unique ...
benjaminsemah.hashnode.dev2 min read