📘 TypeScript Foundation Essentials
Welcome to my TypeScript learning journey! This repository captures hands-on practice, real-world examples, and notes on key TypeScript concepts from beginner to intermediate level.
No. | Folder Name | Topic |
---|---|---|
01 | 01-datatypes |
Basic Types, any , unknown , union |
02 | 02-functions |
Function declarations & returns |
03 | 03-interfaces |
Interface creation & usage |
04 | 04-type-alias |
Aliases using type keyword |
05 | 05-tuples |
Tuples in functions and variables |
06 | 06-classes |
Object-oriented programming basics |
07 | 07-constructors |
Parametrized & default constructors |
08 | 08-static-methods |
Static methods in classes |
09 | 09-access-modifiers |
public , private , protected |
10 | 10-inheritance |
extends , super & multi-level |
11 | 11-method-overloading |
Overloaded function signatures |
12 | 12-method-overriding |
Method replacement in subclasses |
13 | 13-maps |
Map object, iteration methods |
14 | 14-String-Methods |
Built-in string operations |
15 | 15-arrays |
Array methods: map , filter , etc. |
16 | 16-generics |
Generics in functions & classes |
17 | 17-enum |
enum types in TS |
18 | 18-union-types |
Handling multiple types |
19 | 19-Import and Export |
Module import/export with aliasing |
20 | 20-destructuring-spread |
Array/Object destructuring, spread |
21 | 21-async-await |
Asynchronous code & retries |
22 | 22-keyof-typeof |
Type operators for safety |
23 | 23-intersection-type |
Combining types |
24 | 24-discriminated-union |
Safe narrowing with type property |
25 | 25-this-keyword |
Contextual use of this |
26 | 26-narrowing-in-operator |
Type guards using "in" operator |
27 | 27-tsconfig-settings |
Compiler options explained |
- 🧠 Beginner-Friendly explanations with examples
- 🛠️ Practical tasks & mini use-cases
- ✅ Organized folder-wise for clarity
- 📄 Each folder includes
.ts
practice files and aREADME.md
(where needed)
- Clone the repository:
git clone https://github.com/RajatSharan/typescript-foundation-essentials.git
cd typescript-foundation-essentials
- Install dependencies (optional for problem-solving):
npm install
- Compile TypeScript code:
tsc
- VS Code with extensions:
- ESLint
- Prettier
- TypeScript Toolbox
- Node.js installed
This is a self-paced learning repository, but feel free to fork or raise PRs for improvements or new challenges.