TypeScript Tutorials
A full TypeScript course: types, interfaces, generics, modules, tsconfig, and safer JavaScript.
This course includes 18 lessons grouped from first steps to more capable workflows. Work through a group in order, or jump to the task you need today. Every lesson includes explanations, copyable examples, and tips written for beginners.
Cheatsheet · Search this course · Programming category · All categories
Getting started
Topic pageTypes and shapes
Topic pageFunctions and structure
Topic page- Arrays and TuplesType lists of values and fixed-length pairs with arrays and tuples.
- FunctionsAnnotate parameters and return types for clear, checked call sites.
- Generics BasicsWrite reusable functions and types that work with many element types.
- ClassesDefine classes with typed fields, constructors, and access modifiers.
Safety and tooling
Topic pageBrowser and project setup
Topic page- Async TypeScriptType promises and async functions so awaited values stay checked.
- DOM TypingQuery the DOM with types so element properties are checked.
- tsconfig BasicsCreate a tsconfig.json that sets root folders, strictness, and output.
- npm ScriptsWire TypeScript into package.json scripts for build and watch workflows.