Unions and literals | TypeScript Basics pt2
Introduction
Many times when writing TypeScript and annotating types, we may want a variable to be able to allow more than one type of value. For instance, if we have an age variable, we may want that variable to be able to accept a string value or a...
prophet-bestman.hashnode.dev5 min read