TypeScript Cheatsheet 01 — TypeScript Basics

Cheatsheet: types, interfaces, type aliases, unions, narrowing, assertions.

May 18, 2026 · 4 min · 787 words · Manvendra Rajpoot

TypeScript Cheatsheet 02 — tsconfig and Compile Targets

Cheatsheet: tsconfig fields, strict family, moduleResolution, NodeNext, project refs.

May 18, 2026 · 3 min · 538 words · Manvendra Rajpoot

TypeScript Cheatsheet 03 — Generics

Cheatsheet: generic functions, classes, constraints, defaults, conditional inference.

May 18, 2026 · 4 min · 733 words · Manvendra Rajpoot

TypeScript Cheatsheet 04 — Utility Types

Cheatsheet: built-in utility types with practical examples and gotchas.

May 18, 2026 · 3 min · 573 words · Manvendra Rajpoot

TypeScript Cheatsheet 05 — Type Guards and Narrowing

Cheatsheet: narrowing techniques, custom guards, assertion functions, exhaustive checks.

May 18, 2026 · 4 min · 787 words · Manvendra Rajpoot

TypeScript Cheatsheet 06 — Discriminated Unions and Pattern Matching

Cheatsheet: tagged unions, exhaustive switch, ts-pattern, Result types.

May 18, 2026 · 4 min · 720 words · Manvendra Rajpoot

TypeScript Cheatsheet 07 — Conditional and Mapped Types

Cheatsheet: T extends …, infer, distribution, mapped types, key remapping.

May 18, 2026 · 4 min · 749 words · Manvendra Rajpoot

TypeScript Cheatsheet 08 — Modules and ESM/CJS

Cheatsheet: ESM vs CJS, package.json exports, dual builds, type-only imports.

May 18, 2026 · 3 min · 570 words · Manvendra Rajpoot

TypeScript Cheatsheet 09 — Declaration Files (.d.ts)

Cheatsheet: writing .d.ts files, ambient modules, global types, triple-slash.

May 18, 2026 · 3 min · 577 words · Manvendra Rajpoot

TypeScript Cheatsheet 10 — JSX and React Types

Cheatsheet: React.FC vs explicit, props with children, event types, useRef, generic components.

May 18, 2026 · 4 min · 664 words · Manvendra Rajpoot