Conditional Types
Types that depend on conditions.
Basic Conditional Type
Extracting Types
Conditional with Union
Distributive Conditionals
infer Keyword
Nested Conditionals
Practical: Flatten Type
Filter Union Types
Exercise: Create AsyncReturnType
Extract the return type from an async function:
Up next · Lesson 32 of 34
Type Challenges
3 min read
31 of 34 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

