TypeScript Type Definition Practice
OfficialTypeScriptIntermediate
Overview
Practical code using TypeScript type definitions and interfaces.
Rules
Mode
All LinesNormalOff
Time Limit
1:10Mistake Limit
UnlimitedCode PreviewTypeScript
interface User {
id: string;
name: string;
email: string;
age?: number;
}
type UserRole = "admin" | "user" | "guest";
const createUser = (name: string, role: UserRole): User => {
return {
id: crypto.randomUUID(),
name,
email: `${name}@example.com`,
};
};Statistics
Mode
All LinesNormalOff
Time Limit
1:10Mistake Limit
UnlimitedCreated
January 20, 2026Challengers
2Total Attempts
3Completions
0Avg WPM
39.50Avg Accuracy
93.00%Ranking
| Rank | User | WPM | Accuracy |
|---|---|---|---|
| 46.07 | 98.8% | ||
| 40 | 93.0% |
Exercise Ranking
Top typers for this exercise
Total Participants
2
Period
All Time
Total Challenges (All Users)
3
Total Practice Time (All Users)
00:03:26
Total Keystrokes (All Users)
757
Period
Sort
| Rank | User | wpm | Accuracy | Started/Completed | Correct/Strokes | Total Time | Last Attempt |
|---|---|---|---|---|---|---|---|
| 46.07 | 98.84% | 1/1 | 256/259 | 00:01:06 | 2/3/2026, 06:06 AM | ||
| 40.00 | 93.00% | 2/0 | 463/498 | 00:02:20 | 1/20/2026, 01:35 PM |
Ranking of 2 users