Codington

Free teaching resource

Eight ready-to-run TypeScript lesson plans

A practical 4–6 week sequence with focused browser exercises, timings, discussion prompts, and no local setup for students.

Get the free class pack

Public exercises do not require student accounts. Share: https://codington.io/typescript

How to use the sequence

Choose one lesson flow for each 60–90 minute class session.

Share the linked categories and let students solve 3–5 exercises.

Finish by reviewing common mistakes and the discussion prompt together.

Suggested lesson flows (60–90 min)

Each session combines current Codington categories into a practical progression from beginner to advanced TypeScript.

The sequence is aligned with the official TypeScript Handbook. Detailed reading links for each lesson are included in the class pack.

Lesson 1: TypeScript foundations (part 1)

Beginner

Goal: Set up a strong baseline for core types and function typing

Wrap-up: Use the final 15 minutes to review explicit vs inferred types and common parameter mistakes.

Lesson 2: TypeScript foundations (part 2)

Beginner

Goal: Move from basic syntax to object and collection modeling

Homework: Assign one extra category drill and ask students to explain their type choices in comments.

Lesson 3: Safer data modeling

Beginner

Goal: Model real data and avoid runtime bugs

Discussion prompt: When to use `type` vs `interface`.

Lesson 4: Null safety and narrowing

Intermediate

Goal: Handle uncertainty safely in TypeScript

Practice prompt: Ask students to rewrite one weakly-typed helper into a proper narrowing flow.

Lesson 5: Assertions and uncertainty

Intermediate

Goal: Use assertions carefully and prefer safer alternatives

Key takeaway: Why `unknown` is safer than `any`.

Lesson 6: Generics fundamentals

Intermediate

Goal: Build reusable, type-safe abstractions with type parameters

Checkpoint: Have students explain where inference is enough versus where explicit type parameters help.

Take the complete class pack

Keep the complete sequence handy so you can run class without rebuilding the lesson plan from scratch.

  • Eight ready-to-run lesson plans
  • Recommended category order for a 4–6 week module
  • Discussion prompts for common student mistakes
  • TypeScript Handbook reading links mapped to each lesson