TypeScript Associate — Hard
Key points
- The tuple prevents conditional type distribution for accurate detection of T being never.
- The code is designed to handle the scenario where T is never.
- Without the tuple, the conditional check would not work correctly.
Ready to go further?
Related questions
