Documentation Index
Fetch the complete documentation index at: https://mintlify.com/typescript-exercises/typescript-exercises/llms.txt
Use this file to discover all available pages before exploring further.
Introduction to TypeScript Exercises
TypeScript Exercises is an interactive learning platform designed to help developers master TypeScript through hands-on practice. Built with Monaco Editor and powered by a real-time TypeScript compiler, the platform provides immediate feedback as you work through progressively challenging exercises.What is TypeScript Exercises?
TypeScript Exercises is a web-based platform that lets you practice TypeScript concepts directly in your browser. Each exercise presents a real-world scenario where you need to apply specific TypeScript features to fix type errors and complete the challenge. The platform runs entirely in the browser, using:- Monaco Editor for code editing (the same editor that powers VS Code)
- TypeScript Compiler running in a Web Worker for real-time type checking
- In-memory file system to simulate a full TypeScript project environment
Who is This For?
TypeScript Beginners
Start with basic typing concepts and gradually build up to advanced features
JavaScript Developers
Transition from JavaScript to TypeScript with practical, hands-on exercises
Intermediate TypeScript Users
Deepen your understanding of generics, type declarations, and advanced patterns
Interview Preparation
Practice TypeScript concepts commonly tested in technical interviews
Key Features
Real-Time Type Checking
As you type, the platform continuously validates your code using the TypeScript compiler. Errors are displayed immediately in the bottom panel, showing exactly what needs to be fixed.The platform uses TypeScript 3.7.2 with strict mode enabled, ensuring you learn TypeScript best practices from the start.
Progressive Difficulty
Exercises are carefully ordered to build on previous concepts:- Basic typing - Define interfaces and use fundamental types
- Refining types - Work with type narrowing and type guards
- Union types - Combine multiple types effectively
- Merged types - Use intersection types and type composition
- Generics - Create reusable, type-safe components
- Type declarations - Write
.d.tsfiles for JavaScript libraries - Module augmentation - Extend existing module types
- Advanced type mapping - Master conditional types and mapped types
Difficulty grows quickly from one exercise to the next. Don’t be discouraged if you need to reference TypeScript documentation!
In-Browser Code Editing
The platform provides a professional editing experience with:- Syntax highlighting
- IntelliSense and autocomplete
- Error squiggles and hover information
- File navigation and tree view
- Solution comparison view
Self-Paced Learning
Work through exercises at your own pace:- Progress is saved automatically in local storage
- Skip exercises if needed
- View solutions when stuck
- Compare your solution with the reference implementation
Core Principles
Avoid 'any' at all costs
The exercises teach you to use TypeScript’s type system effectively. Using
any defeats the purpose of type safety.Expect increasing difficulty
Each exercise builds on concepts from previous ones. The learning curve is steep but rewarding.
Learn by doing
The best way to learn TypeScript is to write TypeScript. These exercises provide structured practice.
Technology Stack
The platform is built with modern web technologies:package.json:46-47:
Open Source and Community-Driven
TypeScript Exercises is an open-source project created by Marat Dulin. The project welcomes contributions and feedback from the community.Next Steps
Quickstart
Jump right in and complete your first exercise
How It Works
Understand the platform architecture and exercise structure