Typescript Literal Types
Introduction
Literal types are a feature of the Typescript compiler that allows the creation of types that have a specific value of a primitive type.
Literal types can be of type string, number or boolean.
Let's take a look at literal types in code. ...
wendelwritescode.hashnode.dev2 min read