- All Courses
- TypeScript for Application Developers
- Generics
- Generic functions and inference
Generic functions and inference
A type parameter links an input type to an output type. Most of the skill is letting inference do the work rather than annotating call sites.
- 13m
- Intermediate

Video by Web Dev Simplified · YouTube
Check your understanding
3 questions. Unlocks when you finish the video.
Overview
What this lesson covers
- Relate argument and return types with a type parameter
- Let inference fill in type arguments at the call site
- Recognise when a generic adds nothing over a union
This lesson sits in Generics, part of TypeScript for Application Developers. It assumes what came before it and leads directly into the next lesson in the module.
In this lesson you will:
- Relate argument and return types with a type parameter
- Let inference fill in type arguments at the call site
- Recognise when a generic adds nothing over a union
Resources
Your notes will live here
Note taking is not available yet. Nothing you type would be saved, so the tab stays read-only for now.