Skip to content

Curriculum / TypeScript

TypeScript.

Best learned second, right after the moment a JavaScript bug wastes an hour of your life. Then types feel like a gift instead of homework.

status
Outlined, not written
file
lesson-01.ts
first project
Types for an API that lies

Why this one

You stop guessing what shape your data is in.

Most professional JavaScript is TypeScript now, so it’s not really optional if you want this for work.

Honest status

Planned. Depends on the JavaScript track landing first.

What it looks like

example.tsdraft snippet
1type Step = "read" | "type" | "build";
2
3const steps: Step[] = ["read", "type", "build"];

The first eight lessons

outline · will change
  1. 01The same code, one annotation at a time
  2. 02Primitive types and inference
  3. 03Objects and interfaces
  4. 04Unions — the useful bit
  5. 05Typing a function properly
  6. 06Arrays, generics, and not panicking
  7. 07Typing a messy API response
  8. 08When to reach for any, and when to admit defeat

Project at the end

Types for an API that lies

You’ll take a real, badly-shaped JSON response and describe it accurately enough that the editor starts catching your mistakes for you.

Want TypeScript sooner?

Join the waitlist and vote for it on the curriculum page. We do actually read the tally.

Join the waitlist