TypeScript for JavaScript Developers
12 lessons. Build on JavaScript with strict types, narrowing, generics, validated external data, and deterministic typed pipelines.
JavaScript developers ready to make data handling safer.
Before you start: JavaScript functions, loops, arrays and objects. Learn these basics in JavaScript Foundations.
12 lessons · 32 exercises and projects. 2 free lessons and 5 free exercises. No account needed for free previews.
What you will learn
- Use unions, narrowing and generics with strict checking.
- Validate unknown external data before using it.
- Build a typed data validator and inventory-report pipeline.
Lessons are included in Course access. Exercises and projects are included in Practice Pack access. Complete Bundle includes both. Compare access options.
← All courses and learning paths · Suggested next course: Data Structures and Algorithms — JavaScript
Course lessons
01Inference and explicit boundariesDistinguish inferred local types from annotated function contracts.Free preview02Function signatures and missing resultsDescribe parameters, return values, and an explicit failure result.Free preview03Object types and optional propertiesModel records without losing valid falsy values.Course04Interfaces and readonly collectionsExpress reusable structures and avoid input mutation.Course05Unions and discriminated variantsNarrow a union before using variant-specific properties.Course06Unknown versus anyValidate unknown data before accessing it.Course07Generics that preserve relationshipsUse a type parameter to connect input and output types.Course08Typed Maps and SetsChoose collections with clear ordering and key semantics.Course09Utility types and safe projectionsUse Pick, Partial and Readonly without assuming runtime transformation.Course10Validating external dataConvert unknown input into a trusted result with runtime predicates.Course11Error results and recoverable failuresRepresent expected failure without confusing it with a valid value.Course12Typed pipelines and regression testsCompose validation, transformation and reporting with stable contracts.Course