TypeScript Professional — Hard
Key points
- Contravariance of function parameters is utilized
- Union members become function parameter types
- All union members must be satisfied simultaneously
- Inference is used to determine the resulting intersection type
Ready to go further?
Related questions
