Parv Sharma

sharmaparv.2004@gmail.com·+91 62807 30669·parvsharma.in·linkedin·github


February 20, 2026

Why I Love TypeScript

TypeScript has fundamentally changed how I write JavaScript. At first it felt like extra boilerplate — types everywhere, compilation step, strict mode yelling at me. But after a few months of daily use, I can't imagine going back.

// The key insight

The big shift for me was realizing TypeScript isn't really about catching bugs. It's about *documenting intent*. When I write function processOrder(order: Order): Promise<Receipt>, I'm telling the next person (often future-me) exactly what this function expects and returns. No need to read through the implementation to understand the contract.

// Real benefits I've noticed

1. Refactoring without fear. When I renamed a field across a codebase at Bajaj Finserv Health, TypeScript told me every place that needed updating. No runtime surprises, no grep-and-pray.

2. Autocomplete that actually works. When your objects have types, your editor knows what properties exist. This alone speeds up development noticeably.

3. Catching silly mistakes early. Passing a string where a number was expected, forgetting to handle the undefined case — these show up at write-time, not in production at 2am.

// The tradeoff

It does add friction. You spend more time on setup. Some libraries have terrible types or none at all. And sometimes the type system fights you when you're doing something creative.

But for any project that'll live longer than a weekend, the investment pays back quickly.

If you haven't tried TypeScript seriously — not just .ts files with any everywhere — give it a real shot.


← back to blog