Abstract vs Interface vs Ordinary
Understand the distinctions between abstract classes, interfaces, and ordinary classes in TypeScript and gain insight into their use cases.
Understand the distinctions between abstract classes, interfaces, and ordinary classes in TypeScript and gain insight into their use cases.
In TypeScript, there are two ways to define object shapes: interfaces and types. While they may seem similar, they have some key differences and specific use cases. This article will help you understand when to use interfaces and types in TypeScript.
In this post, we will explore TypeScript generics and their usage in building tree data structures. We will cover the basics of generics and demonstrate how to create and manipulate a tree using TypeScript.