Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice
Review: Evaluating a Conditional Type
Arrange the steps of evaluating conditional type T extends U ? X : Y:
Items to put in order
- Evaluate the extends U condition
- If true - return type X
- If false - return type Y
- Check the input type T
You can check the correct answer by solving this task in the CodeWorlds game.