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 is the practical purpose of augmenting a third-party module's types (like adding req.userId to Express's Request), rather than forking the library?
A
There's no real benefit
B
It lets you add legitimate custom type information (like a property your own middleware sets) without patching or forking the library's source
C
It changes the library's actual runtime behavior
D
It's required for the library to function at all
Check Answer