CodeZettaInterview Hub

TypeScript · Architecture · Junior · Architecture

DTO vs domain model typing?

Short Interview Answer

Separate transport shapes from rich domain types; map at boundaries.

Detailed Explanation

Prevents leaking persistence/API details into core logic.

Did you know this answer?