- All Courses
- TypeScript for Application Developers
- Advanced Types
- Conditional types and infer
Conditional types and infer
A conditional type branches on assignability, and infer pulls a type out of the branch it matched. This is how utility types are built.
- 14m
- Intermediate

Video by Sukrid LearnHub · YouTube
Check your understanding
3 questions. Unlocks when you finish the video.
Overview
What this lesson covers
- Branch a type on an extends check
- Extract inner types with infer
- Understand distribution over union members
This lesson sits in Advanced Types, 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:
- Branch a type on an extends check
- Extract inner types with infer
- Understand distribution over union members
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.