-
Book Overview & Buying
-
Table Of Contents
TypeScript 5 Design Patterns and Best Practices - Second Edition
By :
In this chapter, we explored some of the most important caveats and anti-patterns when working with TypeScript. In general terms, TypeScript is very adaptive as a language and accepts alternative programming models. However, you should strive to avoid confusion when developing with types, prefer plain functions and types over classes, and leverage type inference when needed.
In the last chapter of the book, we are going to carry out a detailed exploration of the usage of design patterns and best practices within two popular TypeScript frameworks: tRPC and Apollo Client. By studying these frameworks, we will gain valuable insights into how they have been designed to work using idiomatic TypeScript.