Note
A Small TypeScript Habit with a Big Payoff
Narrowing unknown data at the edge is usually more valuable than sprinkling extra types deep inside the app.
When data crosses a boundary, I try to avoid trusting it too early.
Treating incoming values as unknown for one extra step forces a quick decision: validate, transform, or reject. That habit tends to prevent subtle problems earlier than adding more type ceremony after the fact.