TypeScript
Quick reference for TypeScript types, interfaces, and advanced features
Table of Contents
Basic Types
Primitive Types
TypeScript basic primitive types and type annotations
Type Aliases & Unions
Create custom type aliases and union types for flexibility
Functions
Function Types
Type annotations for functions and their parameters
Function Overloading
Define multiple function signatures for different parameter types
Interfaces & Classes
Interfaces
Define object shapes and contracts for type checking
Classes
Object-oriented programming with TypeScript classes
Inheritance
Class inheritance and method overriding in TypeScript
Generics
Generic Functions
Create reusable functions that work with multiple types
Generic Classes & Interfaces
Build flexible classes and interfaces with generic types
Advanced Types
Utility Types
Built-in TypeScript utility types for type transformations
Type Guards
Runtime checks that narrow types within conditional blocks
Mapped & Conditional Types
Transform and conditionally create types based on other types
Modules & Namespaces
Imports & Exports
ES6 module syntax for importing and exporting code
Declaration Files
Type declarations for JavaScript libraries and modules
TSConfig Reference
Compiler Options Reference
Complete reference of TypeScript compiler options with descriptions and values