2
TypeScript Deep Dive – Typing, Generics, Classes, and Interfaces
We covered the very basics of TypeScript in Chapter 1. Now, let’s go further, and learn more advanced features that are going to be essential to develop any real-world application using TypeScript. In this chapter, we are going to build some foundational types that we are going to use in our backend and frontend applications, and along the way, we will learn about the following concepts:
- Advanced typing techniques
- Creating types from other types
- Interface and object-oriented programming (OOP) features
- Generics
- Promises
We will start with advanced typing techniques, which will include narrowing, null types, and function types.
Technical requirements
In this chapter, we will ...
Get Full-Stack Web Development with TypeScript 5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.