jsguides

Tutorial series

Typescript Basics

7 tutorials — follow in order for the best learning path.

  1. Getting Started with TypeScript: Setup and First Project

    A getting started guide to TypeScript covering installation, basic types, compiler configuration, and your first project with practical examples.

  2. TypeScript types and interfaces: a complete tutorial

    TypeScript types and interfaces explained: aliases, unions, extension, generics, index signatures, and when to choose a type over an interface.

  3. TypeScript Generics: Type-Safe Reusable Code

    Learn TypeScript generics from basic parameters to constraints. Build reusable, type-safe functions, interfaces, and classes with practical examples.

  4. Type Narrowing and Guards in TypeScript

    Master TypeScript type narrowing with typeof, custom type guards, the in operator, and discriminated unions to refine union types and catch compile-time bugs.

  5. TypeScript Utility Types: A Complete Tutorial

    Master TypeScript utility types including Partial, Required, Pick, Omit, Record, Extract, Exclude, ReturnType, and Parameters to transform types efficiently.

  6. TypeScript Mapped Types: Transform Object Shapes

    Transform TypeScript mapped types into real type-safety gains. Covers key remapping, conditional filtering, and patterns for form types and API responders.

  7. Conditional Types in TypeScript

    Master TypeScript conditional types to create flexible, reusable type transformations that adapt based on type relationships.