Skip to content

gaoziyin/TypeScriptLearn

Repository files navigation

TypeScript Learning Curriculum

A comprehensive TypeScript learning curriculum from beginner to advanced, featuring the latest TypeScript 5.7 features.

📚 Curriculum Overview

graph LR
    M1[Module 1: Fundamentals] --> M2[Module 2: Intermediate]
    M2 --> M3[Module 3: Advanced Types]
    M3 --> M4[Module 4: Advanced Patterns]
    M4 --> M5[Module 5: Real-World]
Loading

Module 1: TypeScript Fundamentals

Chapter Topic Description
1.1 Introduction What is TypeScript and why use it
1.2 Setup & Configuration Installing and configuring TypeScript
1.3 Basic Types Primitives, arrays, tuples, enums
1.4 Type Inference How TypeScript infers types
1.5 Type Annotations Explicit type declarations

Module 2: Intermediate TypeScript

Chapter Topic Description
2.1 Interfaces Object type contracts
2.2 Classes OOP with TypeScript
2.3 Advanced Functions Overloading, callbacks, this
2.4 Generics Basics Type parameters
2.5 Union & Intersection Combining types

Module 3: Advanced Type System

Chapter Topic Description
3.1 Advanced Generics Constraints, keyof, indexed access
3.2 Conditional Types Type-level conditionals
3.3 Mapped Types Type transformations
3.4 Template Literal Types String type manipulation
3.5 Type Guards & Narrowing Runtime type checking

Module 4: Advanced Patterns

Chapter Topic Description
4.1 Utility Types Partial, Pick, Omit, etc.
4.2 Declaration Files .d.ts and @types
4.3 Decorators Metaprogramming
4.4 Modules & Namespaces Code organization
4.5 TypeScript 5.7 Latest features

Module 5: Real-World Applications

Chapter Topic Description
5.1 TypeScript + React React components with types
5.2 TypeScript + Node.js Backend development
5.3 Testing Jest and type testing
5.4 Performance & Best Practices Optimization tips
5.5 Migration Strategies JS to TS migration

🎯 Learning Path

graph TD
    subgraph Beginner
        A[1.1 Introduction] --> B[1.2 Setup]
        B --> C[1.3 Basic Types]
        C --> D[1.4 Inference]
        D --> E[1.5 Annotations]
    end
    
    subgraph Intermediate
        E --> F[2.1 Interfaces]
        F --> G[2.2 Classes]
        G --> H[2.3 Functions]
        H --> I[2.4 Generics]
        I --> J[2.5 Union/Intersection]
    end
    
    subgraph Advanced
        J --> K[3.x Advanced Types]
        K --> L[4.x Patterns]
        L --> M[5.x Real-World]
    end
Loading

📋 Prerequisites

  • Basic JavaScript knowledge
  • Node.js installed (v18+)
  • A code editor (VS Code recommended)

🚀 Getting Started

  1. Clone this repository
  2. Navigate to Module 1, Chapter 1.1
  3. Follow along with each chapter
  4. Complete the exercises in each section

Built with TypeScript 5.7 features (November 2024)

About

Learn Typescript language from startup to intermediate

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors