TypeScript
Shared Types Are Product Decisions
DTOs are not just compiler furniture; they describe the contract between the story and the system.
2026年6月5日6 min readTypeScriptDXTesting
Shared Types Are Product Decisions
When frontend and backend share a schema, the team is forced to name the product shape. That naming discipline is the real win.
The useful boundary
Good technical writing starts where the boundary becomes visible: what the code owns, what the user experiences, and what future maintenance will ask from the system.
Practices I keep returning to
- Validate data at boundaries with Zod.
- Export inferred types from the schema that validates runtime input.
- Let tests prove invalid content is rejected.
Closing note
The point is not to make the stack impressive. The point is to make the next change understandable.