Introductory course ยท beginner

TypeScript

Describe data clearly as programs grow.

Add type descriptions to JavaScript to catch mismatches earlier and communicate intent. This introductory course focuses on foundational types, not advanced application architecture.

Course outcomes

  • Annotate common values and understand how TypeScript checks assignments.
  • Describe object properties and function inputs and outputs with explicit types.
  • Represent a small workflow as a discriminated union and narrow each state before reading its fields.
  • Describe an array of records with an interface and derive a summary without losing the record types.
  • Narrow a union safely and use a simple generic function to preserve the type of its input.
  • Connect typed records, a state union and a transformation function in a small end-to-end workflow.

Published lessons

  1. Add types to JavaScript values
  2. Type functions and objects
  3. Model safe states with unions
  4. Work with arrays and reusable shapes
  5. Understand narrowing and generics
  6. Type a small application workflow