Instructor: Hi, I'm Rareș. The goal of this course is to show you how you can take advantage of some of the most powerful features in TypeScript using practical and applicable examples. By the end, you'll be armed not only with knowledge on advanced TypeScript mechanics, but you'll also know when and how to apply it.
I'm excited to show you how much power TypeScript truly has, and how, by knowing about some of its hidden features, understanding in depth how they work in principle, then seeing the patterns in which you can apply them, you will notice yourself having a much easier time coming up with great designs that are both readable and maintainable without compromising on type safety. I do speak from personal experience.
We'll be exploring some of the newer features that came out recently that you can enable and start using straightaway for improved type safety and readability, like the number separators, strict property initialization and classes, and the unknown type.
We'll also be looking at how to leverage TypeScript's incredibly powerful inference engine. You can write less types, but actually increase type safety.
We'll also be going over the age-old question of types versus interfaces in depth, how to leverage the power of recursivity to build infinitely deep data structures, and then we'll build some custom type-safe iterators to traverse over those data structures.
Towards the end, we'll look at conditional types, a really innovative new feature, where you can start using conditional if-else logic inside your types.
While this feature is amazing for library authors, I'll show you how you can take advantage of it in your client apps, including how to build a type that flattens any other type you pass into it and even one that recursively traverses your Redux state, regardless of how deeply nested it is, and marks every property as read-only.
I'll go over how to use the new infer keyword to extract information from complex types using pattern matching. We'll even see how to build chainable property decorators that you can use to initialize or augment your class properties.
I'm curious to see what you're going to build after watching this course, and what use cases and designs you'll come up with. TypeScript is an amazing language. I'm grateful to get the chance to show you so many of its features.
Let's start. I'll see you in the next video.