Code Room
Code reviewMedium
Question
Review this TypeScript change to a v1 API serializer.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
// Existing v1 response consumed by many clients:// { "user_id": 42, "full_name": "Ada", "created": "2020-01-01" } function serializeUser(u: User) { return { userId: u.id, // renamed from user_id fullName: u.name, // renamed from full_name createdAt: u.createdAt.getTime(), // was ISO string, now epoch ms };}Run or narrate your approach, then ask the coach.