Tim Mouskhelichvili • March 6, 2023 • 2 minutes to read
TypeScript provides support for many primitive data types. One of them is the boolean type. This article explains the boolean data type in TypeScript and shows many code examples. Let's get to it 😎. Summary The definition The boolean [...]
Tim Mouskhelichvili • January 3, 2023 • 4 minutes to read
If you come from an object-oriented language like Java or C#, you may be surprised that JavaScript doesn't support the enum data type. Luckily, our favorite TypeScript supports it. An enum allows the declaration of a set of related [...]
Tim Mouskhelichvili • July 12, 2022 • 2 minutes to read
TypeScript is a programming language that offers many advantages compared to conventional JavaScript. Its most important advantage is the addition of typings. One of the typings added by TypeScript is the never type. This article will explain, in detail [...]
Tim Mouskhelichvili • July 2, 2022 • 3 minutes to read
TypeScript offers multiple types to compose existing types into new ones, such as the intersection type or the union type. The union type allows a developer to use more than one data type as a parameter or a variable [...]
Tim Mouskhelichvili • March 31, 2022 • 4 minutes to read
In TypeScript, just like in JavaScript, an object contains a set of keys and values. Objects are used to group and pass data to functions. In TypeScript, we represent those objects, with object types, usually interfaces or types. Here [...]
Tim Mouskhelichvili • March 21, 2022 • 3 minutes to read
TypeScript adds a few new data types that the developer can use. One of them is the Tuple type. A Tuple is a type of Array that knows how many elements it contains and at which position is which [...]