Learn Mode course · Beta

Learn TypeScript Inside Your Editor

TL;DR

Contral's TypeScript course teaches strict TypeScript 5 inside VS Code, Cursor and other editors, or the Contral IDE: 13 topics, from inference and unions to narrowing, generics and utility types, with a Basics exam and a typed inventory CLI capstone. Lessons run straight on Node.js with no build step, Defense Mode checks you understood each topic, and the Basics category is free.

Beta. The TypeScript course works end to end, but its lessons may still change as we improve them. Java is Learn Mode's stable course.

The TypeScript course at a glance

Curriculum
13 topics in 2 categories
Exam and project
Basics exam + a capstone
Free plan
Basics: 7 topics + exam
You need
Node.js 22.6 or later

TypeScript curriculum: 2 categories

Topics unlock in order. The Basics exam opens Advanced types, and the capstone comes after the last topic. Narrowing comes before generics, as in the TypeScript Handbook.

  1. 1. Basics

    Free

    7 topics, then a category exam

    • Why TypeScript & running .ts with Node
    • Primitives & inference
    • Arrays, tuples & object types
    • interface vs type
    • Function types, optional & rest parameters
    • Union & literal types
    • Narrowing: typeof, in, instanceof, discriminated unions

    Basics Exam: Typed Order Desk: object types, interfaces, literal unions with as const, function types and narrowing, checked by tsc and by running an order reducer.

  2. 2. Advanced types

    Pro

    6 topics, then the capstone

    • unknown vs any, type predicates
    • Generics
    • Utility types: Partial, Pick, Omit, Record, Readonly
    • Classes in TypeScript
    • Typing async code: Promise<T>
    • tsconfig & strict mode

    Capstone: Typed inventory CLI: a typed model, parsing untrusted input from unknown into typed commands, type-checked formatting, a stdin command line and JSON persistence, across several .ts files.

How a TypeScript topic works

  1. 1
    Theory

    The concept, explained.

  2. 2
    Observe

    Working example code to read.

  3. 3
    Do

    You write code in a practice file in your workspace.

  4. 4
    Debug

    You fix broken code.

  5. 5
    Explain

    You explain the code in your own words. Defense Mode grades the answer.

  6. 6
    Boss

    A final challenge for the topic.

Your code runs for real. Lessons run on Node.js 22.6+, which strips the types and runs the file: no compiler, build step or npm install. Type-check steps use tsc when TypeScript is installed in your project or globally. If the tool is missing or too old, a banner shows How to install and Re-check. You can keep going in the meantime: your code is checked without running it and the result is marked Checked without running.

Defense Mode is part of every topic. It grades your Explain answers, runs a short concept check when you complete a topic, and Defend this on Do, Debug and Boss steps starts a round on your own practice code. See Defense Mode.

Topics unlock in order, and each category ends in an exam. Progress is kept separately for each language, so switching courses never resets anything.

Before you start

TypeScript is JavaScript plus types, so the course assumes you can read basic JavaScript: variables, functions, arrays and objects. New to JavaScript? Start with the free Basics of the JavaScript course.

What's free and what's Pro

Free plan

The Basics category: 7 topics, from inference to narrowing, plus the Typed Order Desk exam.

Topics you've already started or finished stay open on the Free plan.

Pro, Pro+, Teams and all AppSumo tiers

The Advanced types category (unknown, generics, utility types, classes, async types, tsconfig) and the typed inventory CLI capstone.

Where you can take the course

Contral extension

Works in VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium. Run Contral: Start Learning a Language from the Command Palette, or type /learn in the Contral chat.

Get the extension →

Contral IDE

A desktop editor with Contral built in, in public beta. Use the Build/Learn toggle at the top of the Contral panel, or type /learn.

Download Contral IDE →

Start the TypeScript Basics for free

Install the extension or the desktop IDE, pick TypeScript in Learn Mode, and start at topic 1. Upgrade to Pro when you want Advanced types and the capstone.

TypeScript course FAQ

What does the Contral TypeScript course cover?

13 topics in two categories. Basics covers inference, object types, interface vs type, function types, unions and narrowing, and ends in the Typed Order Desk exam. Advanced types covers unknown and type predicates, generics, utility types, classes, typing async code and tsconfig strict mode, and ends in a capstone: a typed inventory CLI.

Do I need to know JavaScript first?

It helps. TypeScript is JavaScript plus types, and the course starts from there rather than from programming basics. If you're new to JavaScript, the Basics category of the JavaScript course is free.

Is the TypeScript course free?

The Basics category is free on the Free plan: 7 topics plus the Basics exam. Topics you've already started stay open. Pro, Pro+, Teams and all AppSumo tiers include the Advanced types category and the capstone.

Do I need to install TypeScript or set up a build?

No build step and no npm install. Lessons run directly on Node.js 22.6 or later, which strips the types before running the file. Steps that type-check your code use tsc when TypeScript is installed in your project or globally; without it, those steps fall back to checks without running.

Is the TypeScript course finished?

It's in beta. The course works end to end, but lessons may still change as we improve them. Java is the stable Learn Mode course.

Where can I take the course?

In the Contral extension for VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium, and in the Contral IDE desktop app. Run Contral: Start Learning a Language, or type /learn, and pick TypeScript.

How does Contral check that I understood a topic?

Defense Mode is part of every topic. It grades your answer on the Explain step, runs a short concept check when you complete the topic, and lets you start a Defend this round on your own practice code.