TypeScript

Working with Boolean in TypeScript

Updated: January 7, 2024 By: Guest Contributor

Introduction TypeScript enhances JavaScript by adding types to the language. Booleans are one of the fundamental data types in TypeScript, representing true/false values. This guide will explore how…

Working with Numbers in TypeScript

Updated: January 7, 2024 By: Guest Contributor

Introduction TypeScript adds additional features to JavaScript such as static typing. Working with numbers in TypeScript is straightforward because it builds on the existing JavaScript capabilities, yet offers…

What is TypeScript and Benefits of Using It

Updated: January 7, 2024 By: Guest Contributor

Introduction TypeScript is a superset of JavaScript that adds static types to the language, enhancing code quality and readability. It’s maintained by Microsoft and embraced by developers for…

TypeScript: Object with Optional Properties

Updated: December 15, 2023 By: Frienzied Flame

In TypeScript, a powerful and popular static type-checker for JavaScript, we often encounter scenarios where an object’s properties may not always be mandatory. In such cases, we leverage…

TypeScript: Transforming Union Types into Intersection Types

Updated: December 14, 2023 By: Frienzied Flame

The world of TypeScript is filled with intricate, advanced type manipulation utilities. Two of the most prevalent and adaptable type constructs in TypeScript are the Union and Intersection…

How to Merge Multiple Objects in TypeScript (2 Approaches)

Updated: December 3, 2023 By: Khue

This quick article shows you 2 different approaches to merging 2 or more objects in TypeScript. Without any further ado, let’s get our hands dirty by writing some…

How to Use Variables to Set Object Keys in TypeScript

Updated: December 3, 2023 By: Khue

There might be cases where you want to use a variable as a dynamic key of an object in TypeScript. The following examples will show you how to…

1 19 20 21