← All lessons
TypeScript

TypeScript

All TypeScript snippets · 400

Every snippet has its own focus page with an explanation and the output it produces.

Basic Types · 24

Variables and Declarations · 14

Functions · 15

Objects and Interfaces · 15

Type Aliases vs Interfaces · 9

Union and Intersection Types · 9

Type Guards · 15

Advanced Types · 9

Classes · 27

Generics · 18

Utility Types · 24

Mapped Types · 9

Conditional Types · 9

Type Compatibility · 12

Modern TypeScript · 3

Type Manipulation · 21

Modules & Namespaces · 15

Decorators · 12

Async & Promises · 12

tsconfig & Compiler · 12

Advanced Generics · 12

Symbols & Iterators · 12

Error Handling · 9

Contextual Typing · 4

Inference Deep Dive · 6

Advanced Tuples · 6

Strict Compiler Flags · 9

Control Flow & Narrowing · 9

Advanced Classes & OOP · 9

Modern ES Features · 6

Advanced Modules · 12

Async Iteration · 6

Type System Limits · 9

Global Scope · 3

Namespaces & Merging · 3

Configuration & Build · 1