I Chose TypeScript For the Nostalgia
Gerald Nash ⚡️
162

IMO, the best part of TypeScript is things like union types which let you preserve the multi-purpose parameter pattern that lots of well-loved JS libraries use to good effect. Give me a string, or an options object!

“Was that property at the top-level of the object, or is it nested?” Now, you’ve got a type system to tell you what to expect, which removes lots of the guess-and-check we’ve all done at one point with pure JS.

I hope that more people become enthusiastic about TS, as it’s a perfect opt-in compromise that lets you pick when and how it will lend a hand or stay out of the way.