Loading video player…

TypeScript in a Real Project: Configure, Migrate and Ship (Overview)

Most of the TypeScript you’ll work on lives in a project that already exists. This course is about moving one to strict TypeScript, one working step at a time.

The Lantern Street Theatre’s ticketing pages are half JavaScript, with "strict": false in their tsconfig.json. The type check passes, but it skips the JavaScript files and the strict checks:

Language: Shell
$ npm run check

> [email protected] check
> tsc --noEmit -p tsconfig.json

One module, checkout.ts, came from an AI assistant, and in places it asks the checker to take its word, as in chosenPerformance()!. When you’re done, every file in the project is TypeScript, strict is on, and the check runs tsc and a linter. It still passes, and now a pass covers every file and the strict checks:

Language: Shell
$ npm run check

> [email protected] check
> tsc --noEmit -p tsconfig.json && eslint .

The Lantern Street Theatre is a community theater run by volunteers, and Mei Chen’s box office sells every seat through these pages.

What You’ll Learn

By the end of this course, you’ll be able to:

  • Configure a TypeScript project
  • Migrate an existing JavaScript project to strict TypeScript in working steps
  • Type the DOM and a project’s packages
  • Check it with tsc and typescript-eslint in a Vite project
  • Find where types lie in code someone else wrote
  • Build a typed program from a brief without a walkthrough

That last one means the theater’s season passes, built from a brief and its checks, and then your own program, explained to the AI mentor.

Before You Start

If you’re starting here, you should know TypeScript’s everyday types: annotations, object types, type aliases, unions and narrowing, and null checks. You should also know type assertions, unknown and type guards, and typed modules.

From JavaScript, you’ll need the DOM, npm, Vite and a linter.

You need a current Node.js release with long-term support (LTS) and an editor that knows TypeScript. Here’s the version check on a current LTS release:

Language: Shell
$ node --version
v26.13.1

How the Course Works

Download the course’s Sample Code (.zip), linked below this video. It holds three folders: door-check (where you’ll start), ticketing (a slice of the ticketing code), and ticketing-pages (the project). Run npm run check after every change.

Coding exercises run in your browser, beside text lessons, short videos, a review with the AI mentor, and a quiz. Next up is Configuring a Project With tsconfig.json, on what door-check’s config decides.

Download

Course Slides (.pdf)

780.0 KB
Download

Sample Code (.zip)

13.5 KB

00:00 Welcome to TypeScript in a Real Project: Configure, Migrate and Ship. Most TypeScript you’ll work on lives in a project that already exists. This course is about moving one to strict TypeScript, one working step at a time.

00:17 A theater’s ticketing pages are half JavaScript, with strict off. The check passes, but it doesn’t check the JavaScript or run the strict checks. One module came from an AI assistant, and in places it asks the checker to take its word.

00:34 When you’re done, every file is TypeScript, strict is on, and the check runs tsc and a linter. Now a pass means something.

00:45 The pages belong to the Lantern Street Theatre, a community theater run by volunteers. Mei Chen’s box office sells every seat through them.

00:55 You’ll configure a TypeScript project, and migrate an existing JavaScript project to strict TypeScript in working steps. You’ll type the DOM and a project’s packages.

01:06 You’ll check it with tsc and typescript-eslint in a Vite project, and find where types lie in code someone else wrote. Last, you’ll build a typed program from a brief without a walkthrough: the theater’s season passes, then your own program, explained to the AI mentor.

01:26 If you’re starting here, you should know TypeScript’s everyday types, type assertions, unknown and type guards, and typed modules. And from JavaScript, the DOM, npm, Vite and a linter.

01:40 You need a current Node LTS release and an editor that knows TypeScript.

01:47 Download the Sample Code, linked below. It holds door-check, the theater’s check-in page where you’ll start, a slice of the ticketing code and the ticketing pages.

01:56 Run the check after every change. Coding exercises run in your browser, beside text lessons, short videos, a review with the AI mentor and a quiz. Next up is Configuring a Project With tsconfig.json, on what door-check’s config decides.

Become a Member to join the conversation.