CodeZettaInterview Hub

TypeScript · Types · Mid-Level · Concept

Intersection types — what are they for?

Short Interview Answer

Combine types (A & B); useful for mixins and object composition.

Detailed Explanation

Conflicts in same property types can become never. Prefer interfaces for object extension often.

Did you know this answer?