TypeScript Professional — Hard
Key points
- 'infer' in conditional return types extracts specific types from matched shapes
- Unbox function returns the type of the 'value' property
- Result is determined by the type inferred from the conditional check
Ready to go further?
Related questions
