CodeZettaInterview Hub

TypeScript · Generics · Mid-Level · Concept

Generic variance intuition (in/out)?

Short Interview Answer

TypeScript uses bivariant hacks historically for methods; explicit in/out variance annotations exist for type params.

Detailed Explanation

Important for complex library APIs. Prefer immutable patterns to avoid pitfalls.

Did you know this answer?