TypeScript Associate — Hard
Key points
- Contravariance allows assigning functions with supertype parameters to variables with subtype parameter types.
- This concept is specific to function parameter types in TypeScript.
- It is important to understand contravariance to ensure type safety in TypeScript code.
Ready to go further?
Related questions
