Problem Statement
Which supports declaration merging out-of-the-box?
Explanation
Interfaces with the same name merge into one. Type aliases cannot merge—redeclaring the same type name is an error.
Code Solution
SolutionRead Only
interface Box { id: string }
interface Box { size: number }
// Merged: { id: string; size: number }