Photo by Wolfgang Rottmann on Unsplash

Common mistakes when using TypeScript

I chose the railway photo for the cover for a reason. TypeScript as a type system has many powerful and unique features. But people often do not know about them or neglect them. In this post, I want to highlight some common escape hatches that people use and why they make TypeScript feel like bloated JavaScript. More often than not, we use TypeScript as bloated JavaScript. For example, { options: Record<string, string> } I would argue that this is why people keep saying that TypeScript doesn’t add much value....

August 29, 2023 · 7 min