TypeScript is great


TypeScript is great.

But it has 3 features that you should probably avoid. Here's what I suggest using instead.

Clip from "TypeScript: Getting Started" on Dometrain
Why is using only erasable syntax in TS useful?

1. I'm less likely to need to compile if I only use erasable syntax. Tools like Node can strip erasable types now.

2. Using only erasable syntax creates a simpler mental model: TypeScript is just JS with types.

View original on X