TypeScript

Type system, generics, utility types, and TypeScript patterns asked in interviews.

6 Fundamentals
What is TypeScript & Why Basic Types Annotations vs Inference Arrays, Tuples & Readonly Enums Type vs Interface
5 Type System Building Blocks
Union & Intersection Literal Types & Const Assertions Type Aliases Type Narrowing & Guards Discriminated Unions
3 Functions
Function Types & Signatures Optional, Default & Rest Params Function Overloading
4 Objects & Classes
Interfaces Classes & Access Modifiers Abstract Classes Static Members & Parameter Properties
3 Generics
Generic Functions Generic Constraints Generic Classes & Interfaces
6 Advanced Types
keyof, typeof, indexed access Mapped Types Conditional Types & infer Template Literal Types Utility Types as vs satisfies
3 Tooling & Config
Modules & Namespaces tsconfig.json essentials Declaration files (.d.ts)
2 Patterns & Best Practices
Decorators Common TS Pitfalls

Fundamentals

Type System Building Blocks

Advanced Types