A hands-on repository for experimenting and learning TypeScript.
This repo contains exercises, mini-projects, and practice code covering everything from the basics to advanced concepts in TypeScript.
- 🔹 TypeScript fundamentals – types, functions, objects, arrays, tuples
- 🔹 Advanced concepts – generics, utility types, type guards, enums
- 🔹 Real-world use cases – API typing, modular code, error handling
- 🔹 Mini projects and experiments – applying TypeScript in practice
- Node.js (v16+ recommended)
- npm, yarn, or pnpm
Clone this repository and install dependencies:
git clone https://github.com/Ritik6547/TypeScript-Playground.git
cd TypeScript-Playground
npm installCompile TypeScript files to JavaScript:
tscOr run directly with ts-node (if installed globally or as a dev dependency):
npx ts-node src/main.ts- ⚡ TypeScript – Static typing for JavaScript
- 📦 Node.js – Runtime for executing TS/JS
- 🛠️ ts-node – Run TypeScript directly (optional)
This repository is open-sourced under the MIT License.
Feel free to use, copy, or modify the code for learning and personal use.
Made with ❤️ by Ritik Kumar
📧 Email: alphaop6547@gmail.com
🐦 Twitter: @ritik65477