Topics in this subject
19 topics
TypeScript
Mental Model and Setup
Understand what TypeScript is, how it works under the hood, and how to set it up.
✓Basic Types and Primitives
Learn about string, number, boolean, array, tuple, any, unknown, never, and void.
✓Type Inference and Assertions
How TypeScript automatically guesses types, and how you can override them using type assertions.
✓Interfaces and Type Aliases
How to define the shape of objects using interface and type, and the differences between them.
✓Functions and Signatures
Typing parameters, return values, optional parameters, and function overloads.
✓Classes and Modifiers
Public, private, protected, readonly, and abstract classes in TypeScript.
✓Union and Intersection Types
Combining multiple types using OR (|) and AND (&) operations.
✓Literal Types and Enums
Restricting variables to exact values and organizing constant values.
✓Type Guards and Narrowing
How to narrow down broader types (like unions) into specific types safely.
✓Generics
Writing reusable components that can work over a variety of types.
✓Utility Types (Part 1)
Built-in generic helpers to transform existing types (Partial, Required, Readonly, Record).
✓Utility Types (Part 2)
Advanced utility types for extracting/removing fields and inferring function types (Pick, Omit, Extract, Exclude, ReturnType).
✓Mapped Types
Looping through keys to create dynamic type maps (the engine behind utility types).
✓Conditional Types
Using ternary operators in types (T extends U ? X : Y) and infer keyword.
✓Modules and Namespaces
Importing/Exporting types, difference between value and type imports, and declaration files.
✓React with TypeScript
Typing Props, Hooks, and Events in React functional components.
✓tsconfig.json and Compiler Options
Understanding the most important rules inside the tsconfig.json file.
✓Gotchas and Antipatterns
Common mistakes developers make in TypeScript and how to avoid them.
✓TypeScript Cheat Sheet
A quick reference guide for common TypeScript syntax and features.
No topics match that search.