flâneur — a map of the web's best reading

TypeScript: Documentation - Generics

typescriptlang.org · 4,549 words · saved by 1 readers

Types which take parameters

A major part of software engineering is building components that not only have well-defined and consistent APIs, but are also reusable. Components that are capable of working on the data of today as well as the data of tomorrow will give you the most flexible capabilities for building up large software systems. In languages like C# and Java, one of the main tools in the toolbox for creating reusable components is generics , that is, being able to create a component that can work over a variety of types rather than a single one. This allows users to consume these components and use their own ty

Explore this link on the map →

related reading