Hacker News new | ask | show | jobs
by koolyy 448 days ago
Mainly just when adding new features. For example, updating a trpc endpoint to return an additional field often requires updating other unrelated prisma queries just to satisfy the return types.

I get types are necessary, it just seems to me that they should only ever be defined once and in one place rather than defining any type you need anywhere you need it.