Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice
Review: infer Syntax
Arrange the elements of a conditional type with infer:
Items to put in order
- = T extends
- (...args: any) => infer R
- ? R : never
- type Return<T>
You can check the correct answer by solving this task in the CodeWorlds game.