CodeZettaInterview Hub

TypeScript · Interfaces · Fresh / Intern · Concept

What is declaration merging for interfaces?

Short Interview Answer

Same-name interfaces combine members — useful for extending lib types.

Detailed Explanation

Unexpected merges can widen APIs. Prefer module augmentation intentionally.

Did you know this answer?