TypeScript Survival Guide
Skip to the Q&A coach

TypeScript from JavaScript to Validate Boundaries

Fourteen modules, strict mode throughout: from JavaScript essentials and the type system through classes, generics, advanced and conditional types, async, external code, architecture, tooling, and testing — plus a typed agent pipeline, every lesson with runnable examples from one dataset, the 2004 Patriots roster.

Ask about any TypeScript concept

Answers grounded in this course knowledge plus the TypeScript handbook.

Slide decks

Twenty-minute sections, viewer plus presenter plus print-ready PDFs.

JavaScript & TypeScript Primer

Bearings: check node and the compiler, read characters and spacing, then the roster you will type today — with the first narrowing guard you will reuse all week. (JavaScript & TypeScript Primer) (12 slides)

Download the full deck as PDF

Presenter view

Core Types

Primitives, collections, inference, unions and literals, the four special types, a production cut, and the typing lab. (8 slides)

Download the full deck as PDF

Presenter view

Objects, Interfaces & Types

Interfaces and aliases, optional and readonly fields, dictionaries, extension and composition, structural typing, a production cut, and the modeling lab. (8 slides)

Download the full deck as PDF

Presenter view

Functions in Depth

Typed params and returns, optional and default parameters, overloads and call signatures, this and arrows, higher-order functions and callbacks. (10 slides)

Download the full deck as PDF

Presenter view

Classes & OOP in TypeScript

Modifiers and readonly, inheritance with abstract classes and interfaces, getters and setters, statics, parameter properties, and production patterns. (10 slides)

Download the full deck as PDF

Presenter view

Conditional & Type-Level Programming

How TypeScript narrows a wide type down to the exact one you need: equality, typeof, truthiness, unions, type predicates, whole-object validation, assertions, never, intersections, in, and instanceof. (22 slides)

Download the full deck as PDF

Presenter view

Generics

GearItem<T> — one kit shape serving every payload: capture and constrain, inventory tables, and tag shapes the compiler checks — taught through patrol gear. (11 slides)

Download the full deck as PDF

Presenter view

Advanced & Utility Types

Utility types that reshape one honest record: keep fields, drop fields, map tables, derive keys, and write the loop yourself. (8 slides)

Download the full deck as PDF

Presenter view

Working with External & Untyped Code

Types for code you did not write: declarations, community types, checked JavaScript, module boundaries, and migration in slices. (8 slides)

Download the full deck as PDF

Presenter view

Asynchronous Programming

Promise types, async-await, API shapes, error patterns, and the telemetry fallback - ending in a typed data layer lab. (10 slides)

Download the full deck as PDF

Presenter view

Application Architecture & Patterns

Module seams, repositories, domain modeling with the eight outdoor skills — ending in a mini app lab. (8 slides)

Download the full deck as PDF

Presenter view

Configuration & Tooling

The strict family, beyond-strict flags, lint and format, builds, and one-flag-per-commit adoption - ending in a strict-config lab. (8 slides)

Download the full deck as PDF

Presenter view

Testing TypeScript

Red-green loop, first test, mocks, fixtures, async tests, tdd - ending in a typed suite lab. (10 slides)

Download the full deck as PDF

Presenter view

Best Practices & Common Pitfalls

Code walk, not lecture: why prompts stack, what the logo does and what changes it, where generics pay off, and the incident behind a validator. (6 slides)

Download the full deck as PDF

Presenter view

Capstone Project: Trail Buddy — Agents That Check Your Work

Agents in the wild: the buddy rule, Playwright eyes, compiler hands, the agent red-green loop, leave no trace, and a trail-check lab. (8 slides)

Download the full deck as PDF

Presenter view

Course source: TS50, companion to the python edition · answers run on Amazon Nova via Bedrock.