TypeScript / THE COURSESearch

FREE COURSE / TYPESCRIPT 7

Learn TypeScript.
Build apps
and libraries.

Learn how JavaScript runs and how TypeScript checks your code. Then build, test, and package software you can maintain.

Free to read. No account needed.

your-next-step.tsTS
TypeScript
type Job =
  | { state: "queued"; id: string }
  | { state: "done"; result: string };

function describe(job: Job) {
  if (job.state === "done") {
    return job.result; // narrowed to string
  }
  return `Waiting: ${job.id}`;
}
THE LEARNING LOOP

Predict the type.
Check the code.
Run the JavaScript.

CHECKED AND RUN
36LESSONS WITH EXERCISES
05STAGES
72CODE EXAMPLES & DRILLS
01PRODUCTION CAPSTONE

YOUR LEARNING PATH

Start with the basics.
Build at every stage.

Write your first program, learn the type system, then build applications and libraries. Each stage ends with a project.

STAGE 01 LESSONS 01–07

Foundations

Learn the JavaScript you need and write your first strict TypeScript program.

Start stage

TYPES AND RUNTIME

Types check your code.
Validation checks your data.

EXTERNAL DATAUNKNOWNPARSE + VALIDATETRUSTED TYPE

Let TypeScript infer what it can. Use unions to describe valid states, and validate external data before you trust it.

Learn runtime validation

THE FINAL PROJECT

Build a job
execution platform.

A CLI, HTTP API, async executor, persistence, cancellation, and a reusable package. Build it in stages and test each part.

View the project