Introduction to Generics in TypeScript
The main feature of TypeScript is that all its structural components must be assigned a type. However, when developing complex programs, combining types is often not enough. And for this purpose, generics are used - special variables that help to declare a complex type. Interfaces and OOP classes can be used as a generic type.
We'll look at working with generics in TypeScript in more detail in the following lessons.