train
to
code
YouTube
TypeScript Conditional Types Quiz
Question 1
What is the general form of a conditional type?
`T extends U ? X : Y`
`if (T) { X } else { Y }`
`T ? U : V` at runtime
`switch (T)`