CodeZettaInterview Hub

TypeScript · Conditional Types · Fresh / Intern · Concept

What is a conditional type?

Short Interview Answer

T extends U ? X : Y — choose types based on assignability.

Detailed Explanation

Foundation of many utilities (Exclude, Extract). Distributes over naked type params.

Did you know this answer?