A guided workbook for learning TypeScript from basics to production patterns. You can work through the single file or follow the section files in order.
workbook/sections/01-introduction.tsworkbook/sections/02-basic-types.tsworkbook/sections/03-functions.tsworkbook/sections/04-objects-type-aliases.tsworkbook/sections/05-interfaces.tsworkbook/sections/06-union-intersection-types.tsworkbook/sections/07-enums-const-objects.tsworkbook/sections/08-generics.tsworkbook/sections/09-utility-types.tsworkbook/sections/10-classes.tsworkbook/sections/11-advanced-types.tsworkbook/sections/12-type-guards.tsworkbook/sections/13-modules-config.tsworkbook/sections/14-error-handling.tsworkbook/sections/15-real-world-patterns.tsworkbook/sections/16-testing.tsworkbook/sections/17-production-best-practices.tsworkbook/sections/18-capstone-project.ts
If you prefer a single file, use workbook/workbook.ts.
You can type-check any file with tsc using npx (no local setup required):
npx tsc --noEmit workbook/workbook.tsTo run a single topic file:
npx tsc --noEmit workbook/sections/01-introduction.tsTip: Uncomment the TODO exercises as you go. Type errors are expected while you are mid-exercise.