Generics let you write reusable functions, classes, and types that work with different types while preserving type safety (e.g., T, U). They avoid repetition and keep strong typing.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "what-are-generics-in-typescript-and-why-use-them"
function explain() {
// Start from the core idea:
// Generics let you write reusable functions, classes, and types that work with different typ
}