Whispers in the Type System
TypeScript doesn’t raise its voice. It underlines things in red and waits for you to notice. This is the most patient form of mentorship available in modern tooling.
The Red Underline
That squiggly line under your variable isn’t criticism. It’s a colleague leaning over and whispering, "hey, this might not be what you think it is." You can ignore it. People ignore good advice all the time.
Strictness as Kindness
strict: true in your tsconfig isn’t punitive. It’s the codebase equivalent of a friend who won’t let you send that email without proofreading it first. Every any you add is a door you’re leaving unlocked.
// This compiles. It also keeps you honest.
interface Transmission {
signal: string;
frequency: number;
encrypted: boolean;
// The type system sees what you meant,
// not just what you wrote.
}
The type system remembers your interfaces long after you’ve forgotten why you wrote them. Let it do its job.
The deep currents don’t shout. They move entire oceans.
— JP, from the void.