DEV Community

Discussion on: Why You Should Use TypeScript Over JavaScript in 2021 | A Simple Example

Collapse
thewix profile image
TheWix

For a small enough project it probably isn't worth it. For anything of decent size, longevity, and with more than one developer any project would benefit from static typing. I found this to be even better with FP.

Type checking give you free testing and if you can use concepts like smart constructors, brands, unions, etc then you get better checking than traditional C-style languages.