TypeScript Cheat Sheet
Core TypeScript syntax, typing patterns, and compiler commands.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Setup and CLI
## Primitive Types and Annotations
## Objects, Interfaces, and Type Aliases
## Tuples and Enums
More in TypeScript
TypeScript Utility Types and Recipes
Built-in utility types and practical application patterns.
TypeScript tsconfig and Tooling
tsconfig.json patterns, diagnostics, and project references.
TypeScript Classes and Modules
Classes, access modifiers, inheritance, modules, and validation boundaries.
TypeScript Functions and Narrowing
Function typing, overloads, control-flow narrowing, and async typing.
TypeScript Types and Generics
Advanced type operators, mapped types, conditional types, and utility types.