---
title: Generics in functions and classes
description: "You can specify type parameters on functions and classes to infer the type of arguments from usage."
link: https://www.typescriptlang.org/docs/handbook/2/generics.html#working-with-generic-type-variables
---
