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
A published library exposes a config object shape and wants consumers to be able to add their own additional fields to it from their own code, without editing the library's source. Which declaration form directly supports this?
A
type alias, via declaration merging
B
interface, via declaration merging
C
Neither supports this
D
Only a class supports this
Check Answer