Introduction The Typescript Required<T> utility type provides a wonderful means converting optional properties to be mandatory instead. Let’s dive...
Introduction Literal types are a feature of the Typescript compiler that allows the creation of types that have a specific value of a primitive...
When things are more than one thing · Introduction Typescript union types describe values that can be one of several distinct types. You could imagine an...
A look at function declarations, function expressions and arrow functions. · Introduction JavaScript functions are set of instructions that execute...
The funky cousin of the if-else statement · What is the ternary operator? The JavaScript ternary operator is a magical sprinkling of syntactic sugar that...
What are enums? Typescript enums provide a way to define a set of named constants. Let's have a look at how we can use them in our code. Declare an...