Category: TypeScript

0

Chapter 11: TypeScript Union Types

TypeScript – Union Types. If TypeScript is a superhero, union types are its superpower. They’re what make TypeScript expressive, flexible, and incredibly safe all at once. Let me start with a simple analogy: Imagine you’re...

0

Chapter 12: TypeScript Functions

Part 1: The Basics – Function Types and Signatures Function Parameter Types Every parameter can (and should!) have a type: typescript

What TypeScript does here: ✅ Ensures you call greet with exactly 2 arguments ✅...

0

Chapter 13: TypeScript Casting

TypeScript Casting (also called Type Assertion) is one of the most misunderstood and most frequently misused features in TypeScript. Let’s talk about it very honestly and step-by-step — like we’re sitting together debugging real...

0

Chapter 14: TypeScript Classes

TypeScript Classes like we’re sitting in a quiet room with a whiteboard, coffee, and no hurry. I’ll explain everything slowly, show patterns people actually use in 2025–2026 real projects, highlight what’s safe / common...

0

Chapter 15: TypeScript Basic Generics

TypeScript Basic Generics (aimed at someone who already knows basic types + interfaces + functions) Imagine we’re sitting together — I’m drawing on a whiteboard, you’re asking questions whenever something feels unclear. 1. The...

0

Chapter 16: TypeScript Utility Types

1. First — What are Utility Types really? (the honest explanation) Utility types are built-in generic type helpers that TypeScript gives you for free. They let you transform, filter, combine, unwrap, or modify existing...

0

Chapter 17: TypeScript Keyof

TypeScript like we’re sitting together at a desk, drawing on a notepad, and going through real examples step by step. keyof is one of the most powerful (and most frequently used) type operators in...

0

Chapter 18: TypeScript Null & Undefined

Null and undefined in TypeScript very honestly and thoroughly — like we’re sitting together debugging real code and trying to understand why this topic confuses so many people (even experienced developers). 1. First —...