The course
Learn TypeScript through cricket — eleven interactive lessons, about an hour, all in your browser.
What you'll learn. Every beginner TypeScript concept: primitive types, arrays, tuples, interfaces, unions, functions, optional parameters, aliases, enums, basic generics, and type narrowing. By Lesson 11 you can read production TypeScript and write your own with confidence.
How it works. Each lesson maps one TypeScript concept to one cricket moment you already understand. A batter has attributes — that's a type. Two batters at the wicket — that's a tuple. A bowler delivers a ball — that's a function. You tap, drag, and watch the code play out on the field.
What you need. A browser and five spare minutes. No setup, no install, no boilerplate. CricketScript is in beta right now — all 11 lessons are free while I iterate toward the full release.
A fictional T20 XI runs through every lesson — three Indians plus two overseas specialists. Meet the team →