A beginner-friendly TypeScript course repository that covers fundamental TypeScript concepts along with practical projects.
This repository is a complete TypeScript learning resource, including:
- Core TypeScript concepts
- How to compile and run TypeScript files
- Small projects and exercises to practice TypeScript
- A React project with TypeScript
Typescript-Course/
│-- dist/ # Compiled JavaScript output
│-- react-in-ts/ # React project with TypeScript
│-- single-lingo/ # Another TypeScript project
│-- src/ # Main TypeScript source files
│-- tsconfig.json # TypeScript configuration file
Ensure you have TypeScript installed globally:
npm install -g typescriptTo compile a TypeScript file into JavaScript:
tsc index.tsTo watch for changes and auto-compile:
tsc index.ts -wTo initialize a TypeScript project with a config file:
tsc --initTo run the TypeScript projects, navigate into a folder (e.g., dist/) and run:
node index.jsFor the React project inside react-in-ts/, use:
cd react-in-ts
npm install
npm startA TypeScript-based project that focuses on fundamental concepts and showcases TypeScript features in React.
A TypeScript-based project that focuses on fundamental concepts and showcases TypeScript features.
A basic React project demonstrating how to use TypeScript with React for type-safe component development.
Feel free to contribute or improve this repository by making pull requests!
This project is open-source and free to use.