Skip to main content

TypeScript Roadmap 2026

Add static types to JavaScript: type system, generics, narrowing, configuration and typing real applications.

4 stages · 7 units · Intermediate · about 60 hours · Last reviewed 19 November 2026

What is a typescript?

TypeScript is a typed superset of JavaScript developed by Microsoft that adds static types, interfaces, generics and better tooling. The compiler checks your code before it runs and then outputs plain JavaScript. It is used to catch bugs early, document data shapes and make large front end and Node.js codebases easier to refactor.

Step-by-step typescript roadmap

  1. 1

    Type Basics

    Describe your data.

    • Everyday Types

      Everyday types are the basic building blocks of TypeScript's type system. They include primitives such as string, number and boolean, arrays and tuples, object types with optional and readonly properties, and function parameter and return annotations. Type inference lets the compiler work out many types for you, so annotations are needed mainly at boundaries.

    • Unions

      Unions let a value be one of several types, written with the pipe symbol, and literal types restrict a value to exact strings or numbers. Narrowing is how TypeScript refines a union inside a branch, using typeof, in, instanceof, equality checks and discriminated unions. Together they model states precisely and make impossible states unrepresentable.

  2. 2

    Reusable Types

    Write flexible code.

    • Generics

      Generics let functions, classes and types work with many types while keeping type safety, using type parameters like T. Constraints with extends restrict what T can be. TypeScript also ships built-in utility types, such as Partial, Pick, Omit, Record and ReturnType, that transform existing types, saving you from rewriting similar shapes.

    • Advanced Types

      Advanced types are TypeScript features for computing new types from old ones. Mapped types transform each property of a type, conditional types choose a type with extends and infer, and template literal types build string types from parts. Library authors use them to give precise types to flexible APIs, and they appear inside many utility types.

  3. 3

    Project Setup

    Compile and configure.

    • Tooling

      TypeScript tooling covers the compiler configuration and surrounding build tools. The tsconfig.json file sets the target, module system, strictness and include paths, and the strict flag turns on checks such as strictNullChecks. Teams pair tsc with bundlers, ESLint with typescript-eslint and a formatter so type errors and style issues show up in the editor and in CI.

    • Declarations

      Declarations are how TypeScript learns the types of code it did not compile. Declaration files with the .d.ts extension describe the shapes of JavaScript libraries, and packages from DefinitelyTyped provide them under the @types scope. This unit also covers migrating a JavaScript codebase step by step, using allowJs, checkJs and gradual typing.

  4. 4

    Real Applications

    Apply it.

    • Frontend and Backend

      TypeScript in real applications means using types with frameworks on both sides of the stack. In React, you type component props, state, hooks and events, and on the server in Node.js you type request handlers, environment configuration and database results. Sharing types or schemas between client and server keeps an API contract consistent and catches mismatches early.

Frequently asked questions

Ready to practise for interviews?

Practise typescript questions with an AI mock interviewer and get feedback on your answers.

More roadmaps