|
1 | | -# 📘 TypeScript Learning Repository |
2 | | - |
3 | | -Welcome to my **TypeScript Learning Repo** — a structured, hands-on journey from **basic** to **advanced** TypeScript concepts. |
4 | | -This repository is perfect for **JavaScript developers**, **students**, and **beginners** who want to understand TypeScript clearly through practical code examples. |
5 | | - |
6 | | ---- |
7 | | - |
8 | | -## 📂 Folder Structure |
9 | | - |
10 | | -Each folder covers a specific topic, arranged in a learning sequence: |
11 | | - |
12 | | -| Folder Name | Description | Date | |
13 | | -|-----------------------|----------------------------------------|----------------| |
14 | | -| `01_intro` | Introduction to TypeScript basics | Jun 26, 2024 | |
15 | | -| `02_Basics` | Core types and basic syntax | Jun 26, 2024 | |
16 | | -| `Generics` | Introduction to Generics | Jun 27, 2024 | |
17 | | -| `Readonly_optional` | Readonly and optional properties | Jun 26, 2024 | |
18 | | -| `Tuples` | Working with Tuples | Jun 26, 2024 | |
19 | | -| `TypeAliases` | Using and creating Type Aliases | Jun 26, 2024 | |
20 | | -| `classes` | Basics of Classes in TypeScript | Jun 26, 2024 | |
21 | | -| `interface` | Understanding Interfaces | Jun 26, 2024 | |
22 | | -| `union` | Working with Union types | Jun 26, 2024 | |
23 | | - |
24 | | ---- |
25 | | - |
26 | | -## ⚙️ How to Run Locally |
27 | | - |
28 | | -You can read the code directly, or run it locally for hands-on learning. |
29 | | - |
30 | | -### ✅ Prerequisites |
31 | | - |
32 | | -- Node.js installed 👉 [Download here](https://nodejs.org/) |
33 | | -- TypeScript installed globally: |
34 | | - ```bash |
35 | | - npm install -g typescript |
36 | | -```` |
37 | | - |
38 | | -### ▶️ Run a File |
39 | | - |
40 | | -1. Go to the desired folder: |
41 | | - |
42 | | - ```bash |
43 | | - cd 01_intro |
44 | | - ``` |
45 | | - |
46 | | -2. Compile TypeScript to JavaScript: |
47 | | - |
48 | | - ```bash |
49 | | - tsc filename.ts |
50 | | - ``` |
51 | | - |
52 | | -3. Run the compiled file: |
53 | | - |
54 | | - ```bash |
55 | | - node filename.js |
56 | | - ``` |
57 | | - |
58 | | -**OR** use `ts-node` for instant execution: |
59 | | - |
60 | | -```bash |
61 | | -npm install -g ts-node |
62 | | -ts-node filename.ts |
63 | | -``` |
64 | | - |
65 | | ---- |
66 | | - |
67 | | -## 👨🏫 Who is this for? |
68 | | - |
69 | | -* ✅ **Beginners** exploring TypeScript for the first time |
70 | | -* ✅ **JavaScript developers** transitioning to TypeScript |
71 | | -* ✅ **Students** preparing for interviews or improving syntax understanding |
72 | | - |
73 | | ---- |
74 | | - |
75 | | -## 🎯 Purpose |
76 | | - |
77 | | -This repo is for **learning, reference, and revision**. |
78 | | -You can read, clone, tweak, or extend it based on your understanding level. |
79 | | - |
80 | | ---- |
81 | | - |
82 | | -## 🙌 Contributing to Yourself |
83 | | - |
84 | | -* Fork or clone the repo |
85 | | -* Play with the code |
86 | | -* Add new examples as you learn |
87 | | - |
88 | | -> Remember: *Practice beats theory — so try running the code!* |
89 | | - |
90 | | ---- |
91 | | - |
92 | | -## 📅 Timeline Summary |
93 | | - |
94 | | -Started learning on **June 26, 2024** and progressively added topics until completion. |
95 | | - |
96 | | ---- |
97 | | - |
98 | | -Happy Learning & Keep Coding! 🚀 |
99 | | - |
100 | | -``` |
101 | | -
|
102 | | ---- |
103 | | -
|
104 | | -Let me know if you’d like to add a license, badges, or a "coming soon" section for future updates. |
105 | | -``` |
| 1 | +will be Update soon |
0 commit comments