DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
What happens when two `interface` declarations share the exact same name in the same scope, with non-conflicting properties?
A
A compile error — duplicate declaration
B
They merge into a single interface requiring the union of both declarations' properties
C
Only the second declaration is used, the first is ignored
D
Only the first declaration is used, the second is ignored
Check Answer