Typescript Union Types
Introduction
Typescript union types describe values that can be one of several distinct types. You could imagine an age variable that could be either a number or a string or an acceptTerms variable that could be a boolean or a number.
Let's look at a...
wendelwritescode.hashnode.dev3 min read