GuideBeginner

TypeScript Essentials

TypeScript applied end to end: move from "blind" JavaScript to a type system that documents contracts, catches errors at compile time, and makes refactoring safe. The guide covers the full type system — basic types, functions, objects and interfaces, classes and OOP, generics, union types and type guards, utility types, advanced types (conditional, mapped, template literals), error handling and typed async, tooling configuration, and testing — across twelve modules that combine six independent mini-projects (one per module, to practice each concept in isolation) with an integrative evolving project: a Task Management API built progressively from module 7 through module 12, with a generic repository, the `Result<T, E>` pattern for error handling, authentication, and a Vitest test suite plus a CI/CD pipeline. By the end, the student has both conceptual mastery of the type system and a production-ready TypeScript API for their portfolio.

96
lessons
12
modules
English · Spanish
available in
Yes
certificate
Free
access
NIEVA

Outcomes

What you'll be able to do

  • Set up a TypeScript project from scratch (`tsconfig.json`, compilation, tooling) and choose options with judgment, not by copying them from the internet
  • Type functions, objects, and interfaces, and decide when to use `interface` versus a `type` alias
  • Model hierarchies with classes, access modifiers, inheritance, and abstract classes
  • Write reusable generic code: generic functions, classes, and interfaces with constraints
  • Master union types, type narrowing, discriminated unions, and custom type guards
  • Apply utility types (`Partial`, `Pick`, `Omit`, `Record`) and build custom utility types with mapped types and conditional types
  • Handle errors in a type-safe way with the `Result<T, E>` pattern and type asynchronous code (`Promise`, `async`/`await`)
  • Test TypeScript code with Vitest (unit tests, integration tests, mocking, coverage) and wire up a CI/CD pipeline
  • Build a complete, production-ready Task Management API that integrates every concept from the guide

Before you start

What you need to bring

It's for you if...

  • JavaScript developers who want to make the leap to TypeScript with a solid foundation, not just "add types" on top
  • Devs about to build typed React, Next.js, or Node.js backend applications who need to master the type system first
  • Those who want a real TypeScript project — an API with tests and CI/CD — for their portfolio
  • Programmers preparing for technical interviews where TypeScript proficiency is a screening filter

Requirements and materials

  • Comfortable with JavaScript ES6+ (functions, objects, arrays, destructuring, modules)
  • Basic knowledge of `async`/`await` and npm or package managers
  • Node.js 18+ installed
  • Basic comfort with the terminal

Content

The syllabus, module by module

Open any of them to see its lessons.

Common questions

What people usually ask

Start whenever you like

Reviews

What students say

These reviews are from enrolled students who completed at least 50% of the course. We moderate reviews only on content grounds (spam, offensive language, personal data), never for being critical or negative.

No approved reviews yet.

Be the first to share your experience!