Skip to content
Breakpoint logobreakpoınt

TypeHero

Solve type-level TypeScript puzzles in a browser editor

TypeHero is a free site of TypeScript type challenges. Each one asks you to write a type, such as your own version of Awaited, Includes or CamelCase, in a browser code editor, and test cases check that it works. After you solve a challenge you can share your solution and read and comment on other players' answers.

Play on typehero.dev

Free · Login needed · Browser · Intermediate

TypeHero preview

About TypeHero

The puzzles train the type system in depth: generics, conditional types, mapped types and recursion. Challenges are sorted from beginner to extreme, and a TypeScript Foundations track has 12 guided challenges. Many problems are ported from the type-challenges project and credited on each page.

It is open source under AGPL-3.0. You can read challenges without an account, but you sign in with GitHub to submit. The project also hosts Advent of TypeScript, a December event.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help