TypeScript
TypeScript fundamentals and advanced patterns.
From TS basics to advanced patterns and system design notes.
Start with TypeScript Interview Notes
0 of 3 read
- 01TypeScript Interview Notes
Complete TypeScript interview notes and explanations.
- 02Advanced TypeScript Patterns
Production-grade TypeScript patterns for interviews.
Table of Contents1. Type Narrowing Patterns (Critical for Interviews)2. Exhaustive Checking with never (Very Important)3. Discriminated Unions (Most Asked Advanced Topic)4. Generic Utility Patterns5. Conditional Types (Advanced but Real)6. Mapped Types in Production7. Keyof + Lookup Types (Interview Favorite)8. Function Overloads in Real Code9. Type-safe Event Systems10. React-Specific Advanced Patterns11. API Response Safety Pattern+6 more - 03TypeScript System Design Decisions
System design decisions and tradeoffs for TypeScript frontend work.
Table of Contents1. What "System Design" Means in Frontend + TypeScript2. Core Principle: Types at Boundaries3. Preventing Impossible States (Most Important)4. API Layer Design in TypeScript5. Designing Reusable Hooks (Typed Correctly)6. Designing Component APIs (Senior Signal)7. Type Organization Strategy (Large Codebases)8. When to Use interface vs type (System-Level Decision)9. Strictness Strategy10. Avoiding Over-Engineering (Very Important)Problem 1: Type-Safe API Fetcher+7 more