This repository contains the source code and materials for a TypeScript course.
It is designed to help you learn and practice TypeScript fundamentals, advanced features, and real-world applications.
The project will make use of:
- TypeScript β Strongly typed programming language that builds on JavaScript.
- ts-node β Run TypeScript files directly without compiling.
- nodemon β Auto-restart development server on file changes.
- ESLint β Linting utility to enforce best practices.
- Prettier β Code formatter for consistent style.
- Clone the repository:
git clone https://github.com/your-username/typescript-course.git cd typescript-course
- Install dependencies
npm install
- Run a TypeScript file:
npx ts-node src/index.ts
- Compile TypeScript to JavaScript:
npx tsc
- TypeScript basics (types, interfaces, functions, generics)
- Classes and object-oriented programming
- Type narrowing and advanced types
- Modules and namespaces
- Working with npm packages
- TypeScript configuration (tsconfig.json)
- Debugging TypeScript
- Building small projects with TypeScript
Available npm scripts:
- npm run start β Run the main entry file with ts-node.
- npm run build β Compile TypeScript into JavaScript.
- npm run dev β Run with nodemon for development.
- npm run lint β Lint the codebase with ESLint.
- npm run format β Format code with Prettier.