How To Code in TypeScript
Originally published at DigitalOcean
Between March 2021 and February 2022 I wrote a TypeScript series for DigitalOcean’s community tutorials. It starts from the basic types and walks up to generics, namespaces, and modules, one tutorial per concept, each with runnable examples and the compiler errors you will actually see along the way.
The series lives on DigitalOcean, so this post is just the index. Read it there: How To Code in TypeScript.
The tutorials
- How To Use Basic Types in TypeScript, March 16, 2021
- How To Create Custom Types in TypeScript, March 25, 2021
- How To Use Functions in TypeScript, April 13, 2021
- How To Use Enums in TypeScript, June 14, 2021
- How To Use Classes in TypeScript, July 9, 2021
- How To Use Decorators in TypeScript, September 16, 2021
- How To Use Interfaces in TypeScript, October 1, 2021
- How To Use Generics in TypeScript, November 16, 2021
- How To Use Namespaces in TypeScript, February 1, 2022
- How To Use Modules in TypeScript, February 7, 2022
If you are starting with TypeScript, go in order. If you already write it daily, the ones on generics and decorators are the two I still send people to.
Thanks to the DigitalOcean editors who reviewed every draft; the series is much better for it.