Creating and Using Generics in TypeScript 4

by Brice Wilson

TypeScript generics empower you to create reusable, type-safe code for your web applications. This course will teach you how to recognize and use built-in generics as well as how to create your own generic functions, interfaces, and classes.

What you'll learn

In order to fully harness the power of TypeScript, you need to take advantage of all the tools it provides for developing reusable, type-safe code. In "Creating and Using Generics in TypeScript", you will learn how to do more with less code. You will learn what generics are, how to recognize and use built-in generic types, and how to create your own generic functions, interfaces, and classes. When you are finished with this course, you will have a foundational understanding of TypeScript generics as well as the skills to begin using generics to build sophisticated web applications.

About the author

Brice Wilson has been a professional developer for over 20 years and has used many tools and programming languages during that time. His current interests are centered on web services, single-page web applications and native mobile development. He has worked as a developer and architect for a number of large companies and enjoys learning, experimenting with, and teaching new technologies. He also blogs at BriceWilson.net.

Ready to upskill? Get started