In this tutorial, you will learn about the TypeScript never type that contains no value. The never type is a type that contains no values. Because of this, you cannot assign any value to a variable with a never type. Typically,…
In this tutorial, you will learn how to define new names for types using type aliases. Introduction to TypeScript type aliases Type aliases allow you to create a new name for an existing type. The…
In this tutorial, you will learn about the TypeScript void type and how to use it as the return type of functions that do not return any value. Introduction to TypeScript void type The void type denotes the absence…
In this tutorial, you will learn about the TypeScript any type and how to use it properly in your code. Introduction to TypeScript any type Sometimes, you may need to store a value in a variable. But…
In this tutorial, you’ll learn about the TypeScript Tuple type and its usages. Introduction to TypeScript Tuple type A tuple works like an array with some additional considerations: The number of elements in the tuple is fixed….
In this tutorial, you’ll learn about the TypeScript enum type and how to use it effectively. What is an enum An enum is a group of named constant values. Enum stands for enumerated type. To…
In this tutorial, you’ll learn about the TypeScript array type and its basic operations. Introduction to TypeScript array type A TypeScript array is an ordered list of data. To declare an array that holds values of a specific type,…