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...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
API Development
A code review finds a project importing the server's full router implementation (not just its type) into client-side code. What's the risk?
A
No risk — this is the recommended standard pattern
B
This risks accidentally bundling server-only code (database clients, secrets-touching logic) into the client build, unlike a type-only import which is erased entirely at compile time
C
This only matters for very large codebases
D
TypeScript automatically prevents this from ever happening
Check Answer