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:
$ 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:
$ 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:
$ 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.