The Code Guardian

TypeScript

Make illegal states unrepresentable.

intermediate12h82 modulesyour machine: TYPE FORGE — CHECKER BENCH
Drifter0 xp / 150
streak 0dmodules 0
Free quest, 4 minutes

Spot the lie

You can find the place where a type assertion promises the compiler something the runtime never delivers.

Arc 1

First Contact: The Untyped City

You can compile TypeScript, read a compiler error, and annotate primitive values with the everyday types.

Arc 2

The Narrowing Vaults

Pro

You can prove to the compiler which member of a union you are holding using control flow analysis and custom guards.

Arc 3

The Contract Foundry

Pro

You can specify function signatures and object shapes precisely, including optionals, readonly members and index signatures.

Arc 4

The Generic Reactor

Pro

You can write reusable generic functions and types with constraints, defaults and correct inference.

Arc 5

The Class Works

Pro

You can model behaviour with typed classes and organise code across modules with correct import and export forms.

Arc 6

The Async Perimeter

Pro

You can type asynchronous code and untrusted external data so failures surface at the boundary.

Arc 7

The Compiler Control Room

Pro

You can configure a project's compiler options, module output and library types deliberately.

Cookies & privacy

We use cookies for essential features, analytics, and ads. You can accept all, reject non-essential, or manage categories. For visitors in the EEA, UK, and Switzerland, non-essential cookies stay off until you choose.