TypeScript typing practice
Typre is a free typing trainer for programmers. Instead of prose, you type real TypeScript — brackets, operators and indentation included — and it measures WPM, accuracy, raw speed and consistency on every run.
- 181TypeScript snippets
- 61for 15 second runs
- 60for 30 second runs
- 60for 60 second runs
What slows you down in TypeScript
Angle brackets are the whole game: <T>, Record<string, number>, Array<Partial<User>>. Nesting them means reaching for shift constantly, and the closing >> is where most people stumble.
What the snippets cover
Interfaces and type aliases, generics with constraints, union and intersection types, mapped and conditional types, as const, discriminated unions, and typed React props.
Snippets you will actually type
Three of the 61 short TypeScript snippets, exactly as they appear in the app:
interface User {
id: number;
name: string;
}
function first<T>(items: T[]): T | undefined {
return items[0];
}
enum Role {
Admin,
Viewer,
}
How it works
Pick 15, 30 or 60 seconds. Snippets are served in shuffled order, so you never repeat one before finishing a full round — even across page reloads. Sign in to put scores on the leaderboard, race a friend on the same snippet in real time, or paste code from your own project. None of it is required: open the page and start typing.