TypeScript Tutorial — One-Page Cheat Sheet
JavaScript with types — catch bugs before runtime.
TypeScript Tutorial
- HOME
- TS Intro
- TS Get Started
- TS Syntax
- TS Basic Types
- TS Type Inference
- TS Type Assertions
- TS Narrowing
- TS Arrays
- TS Tuples
- TS Objects
- TS Enums
- TS Union Types
- TS Intersection Types
- TS Literal Types
- TS any / unknown
- TS never / void
- TS null / undefined
- TS Functions
- TS Parameters
- TS Return Types
- TS Function Overloads
- TS Async / Promises
- TS Generics
- TS Classes
- TS Inheritance
- TS Interfaces
- TS Type Aliases
- TS Abstract Classes
- TS Getters / Setters
- TS Readonly
- TS Access Modifiers
Advanced Types
- TS Modules
- TS Namespaces
- TS Declaration Files (.d.ts)
- TS keyof
- TS typeof
- TS Indexed Access
- TS Conditional Types
- TS Mapped Types
- TS Template Literal Types
- TS Utility Types
- TS Type Guards
- TS Discriminated Unions
Project Configuration
- tsconfig.json
- Compiler Options
- Strict Mode
- Path Aliases
- lib & target
- Module Resolution
- JSX in TypeScript
- Decorators
Tooling
- Installing TypeScript
- ESLint with TS
- Prettier with TS
- Running TS — tsx / ts-node
- Testing with Vitest
- Build Tools (esbuild, swc, tsc)
- TS in Monorepos
TypeScript References
- TS Keywords
- Built-in Types
- Utility Types Ref
- JSX Reference
- Decorators Reference
- tsconfig.json Reference