TypeScript can infer the type of a generic function based on the argument you pass to it. This feature is known as type inference.