TypeScript card revieweasy

What is the difference between interfaces and type aliases in TypeScript?

Interfaces are extendable via declaration merging (defining the same interface name multiple times stacks fields) and are typically preferred for object structures. Type aliases can define primitives, unions, intersections, and tuples, making them more versatile, but they cannot be merged through duplicate declarations.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.