TypeScript Essentials
Add rock-solid static types to JavaScript. Master type annotations, interfaces, union narrowing, generics, utility types, and strict TypeScript 5 patterns.
What you'll build & master
- ✓ Annotate variables, functions, and objects with strict TypeScript types
- ✓ Model complex domain shapes using interfaces, type aliases, and literal unions
- ✓ Narrow union types safely with typeof, in, and discriminated unions
- ✓ Build reusable type-safe helpers with generics (<T>)
- ✓ Transform existing types concisely using Partial, Pick, Omit, and Record
Course Syllabus
TypeScript Foundations
- 18 min
Types, Inference & Strict Mode
Understand how TypeScript infers types automatically, when to annotate explicitly, and why strict mode prevents null bugs.
- 28 min
Interfaces, Type Aliases & Optional Fields
Define clean object shapes with interface and type, mark optional properties with ?, and protect fields with readonly.
- 39 min
Unions, Literal Types & Narrowing
Model exact states with discriminated unions and narrow types safely using typeof and switch.
Advanced TypeScript
- 19 min
Generics & Type Constraints
Write reusable, type-preserving functions and wrappers with <T> and extends constraints.
- 28 min
Built-in Utility Types
Derive new types cleanly without duplication using Partial, Required, Pick, Omit, and Record.
- 38 min
Custom Type Guards & Predicates
Write reusable narrowing functions with `val is Type` return predicates so TypeScript narrows unknown inputs safely.
- 48 min
as const, satisfies & Literal Objects
Replace runtime TypeScript enums with zero-overhead `as const` objects and validate shapes with the `satisfies` operator.
Production TypeScript
- 18 min
Typing Async Functions & Promises
Annotate async functions with Promise<T>, unwrap return types with Awaited<T>, and type API responses cleanly.
- 28 min
Classes, Access Modifiers & Parameter Properties
Write concise TypeScript classes using public, private, protected, readonly, and implements.
- 39 min
Mapped & Conditional Types
Transform every property of an interface programmatically with mapped types and branch at the type level with conditional types.
- 48 min
Runtime Validation at API Boundaries
Combine TypeScript static types with runtime schema checks so untrusted JSON from APIs or forms never crashes your app.