Skip to main content

Interactive course

Course TypeScript

Master TypeScript strict in 10 progressive modules: primitive types, interfaces, narrowing, generics, classes, utility types, conditional/mapped types, typed asynchronous programming, error handling with Result, and modern patterns with satisfies and branded types.

Static verification via keywords + execution on the official TypeScript Playground (one click for copy code + open).

01 · Fundamentals of TypeScript

2 lessons

The basics of the type system: annotations for primitive types, strict inference, arrays, and tuples.

  1. 1.1Primitive types and annotationsLearn to add explicit annotations, avoid implicit any, and leverage static inference without redundant code.~14 min
  2. 1.2Arrays and TupleWork with homogeneous arrays, Array<T>, readonly, and fixed-position and labeled tuples.~14 min

02 · Types and Interfaces

2 lessons

Create expressive data structures with interface, type aliases, discriminated unions, and type narrowing.

  1. 2.1Type alias vs InterfacesModel objects with interface and type, optional fields, readonly and compositional extension.~15 min
  2. 2.2Unions and ShrinkageCombine union types, check cases with typeof/in, and design safe discriminated unions.~16 min

03 · Generics and Functions

2 lessons

Strict function signatures, optional/rest parameters, overloads, and reusable generic programming.

  1. 3.1Typical functionsNote optional parameters, default values, rest params, reusable type signatures, and void.~15 min
  2. 3.2Fundamental GenericsWrite generic functions, interfaces, and classes with compile-time safe extends keyof T constraints.~18 min

04 · Utility Classes and Types

2 lessons

Typed object-oriented programming and structural transformations with Utility types.

  1. 4.1Classes and ModifiersEncapsulate state with public, private, protected, readonly, parameter properties, and implements.~16 min
  2. 4.2Types of UtilitiesDerive secure DTOs and patches with Partial, Required, Readonly, Pick, Omit, Record, and Exclude.~16 min

05 · Advanced Types and Guards

2 lessons

Custom type predicates, literal types, as const, and template literal types.

  1. 5.1Type GuardsWrite safe custom predicates (x is Type) and assertion functions (asserts x is Type).~16 min
  2. 5.2Literal Types and AssertionsBlock values with literal types, as const, template literal types and avoid blind casts.~16 min

06 · Conditional and Mapped Types

2 lessons

Type-level metaprogramming: conditional types, infer, and mapped types with modifiers removed.

  1. 6.1Conditional Types and inferEvaluate branches T extends U ? X : Y on distributive types and extract sub-types with infer.~18 min
  2. 6.2Mapped TypesGenerate derived interfaces with { [K in keyof T]: ... }, key remapping as and modifiers +/-readonly.~18 min

07 · Configuration and Integration

2 lessons

Strictly configure tsconfig.json, modern module resolution, .d.ts files and declaration merging.

  1. 7.1Configuration with tsconfig.jsonMaster strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes, modern modules and targets.~15 min
  2. 7.2Declarations and MergingWrite ambient declarations (.d.ts), augment existing modules and manage JS interoperability.~16 min

08 · TypeScript Asynchronous & Promise

3 lessons

Typing Promise<T>, async/await, concurrency with Promise.allSettled, and runtime validation of JSON payloads.

  1. 8.1Promise<T> and Async / Await TypedUnderstand the inference of asynchronous returns, Awaited<T>, and error flow in Promises.~16 min
  2. 8.2Typed Concurrency: Promise.all, allSettled and raceTake advantage of the tuple inference of Promise.all and manage partial outcomes with PromiseSettledResult<T>.~16 min
  3. 8.3Fetch API, JSON Unknown and Runtime ValidationWhy res.json() is not enough on its own and how to validate arbitrary JSON responses with type-safe decoders.~18 min

09 · Error Handling, Result Pattern & Architecture

3 lessons

Handle exceptions like unknown, model errors in the type system with Result<T, E>, and organize scalable modules.

  1. 9.1Error Handling with unknown and Type Guard on ErrorLeverage useUnknownInCatchVariables, safely extract messages, and design typed Error hierarchies.~15 min
  2. 9.2Result<T, E>, Discriminated Errors & Exhaustive CheckingMake function signature failures explicit with Result<T, E> and ensure coverage with never.~18 min
  3. 9.3Modular Architecture, Barrel Files & API ContractsSeparate import types for tree-shaking, avoid circular dependencies, and publish stable interfaces.~16 min

10 · Modern Strict Patterns & Final Project

2 lessons

Merge satisfies, branded types and flow controls into a robust end-to-end pipeline.

  1. 10.1Operator satisfies, as const & Branded TypesVerify contracts without widening literal types and prevent primitive ID swaps with branded types.~18 min
  2. 10.2Final Project: End-to-End Typical Event PipelineCombining discriminated unions, raw event decoding, async validation, and Result<T, E> state into a complete mini-engine.~22 min
Frequently asked questions

Course TypeScript FAQ

How many lessons and hands-on exercises are in Course TypeScript?

Course TypeScript covers 10 modules, 22 interactive lessons, and 120 practical exercises (~6 hours total) with instant automated validation.

Do I need local setup or IDE installation for Course TypeScript?

No installation required: every exercise and the interactive Course TypeScript playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.

Is Module 1 of Course TypeScript free without creating an account?

Yes. Module 1 (“Module 1 — Fundamentals of TypeScript”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.

Which career learning paths include Course TypeScript?

Course TypeScript is a core building block of Modern Frontend & Web Engineering, targeting roles such as Frontend Developer · UI Engineer · Full-Stack Web.