TypeScript: overview and learning path
This is the front door of the TypeScript section. It explains in a few paragraphs what TypeScript is and what it changes in a JavaScript project, then lays out the order in which to read the rest of the section: four basics tutorials, eight topic hubs, the version history and a set of interview questions.
What TypeScript is
Section titled โWhat TypeScript isโTypeScript is JavaScript with a static type system. You write ordinary JavaScript plus type annotations, interfaces and other type-level declarations; the TypeScript compiler, tsc, checks that the code is consistent with those types and then erases them, leaving plain JavaScript that runs anywhere JavaScript runs: browsers, Node.js, Deno, Bun and serverless platforms. TypeScript does not have its own runtime and, apart from a few older features such as enum, adds nothing to the JavaScript it produces.
Teams adopt it for the feedback it gives before code runs. The compiler reports a misspelled property, a missing null check or a wrong argument type at the line where it happens, editors use the same type information for completion and safe renames, and the types document how modules fit together. The benefit grows with the size of the codebase and the number of people changing it: a refactor that changes a functionโs signature produces a list of every call site to fix, instead of a production error weeks later.
What TypeScript does not do is check data at run time. Types are gone when the code runs, so values from an API, a form or JSON.parse must still be validated; the type narrowing hub shows how.
The current release
Section titled โThe current releaseโAs of November 2026 the current version is TypeScript 7.0 (7.0.2), released in July 2026. It is a port of the compiler and language service from JavaScript to Go, built to report the same errors as TypeScript 6.0 with much faster builds. TypeScript 6.0 (March 2026), the last JavaScript-based compiler, prepared the move by turning strict on by default, modernizing other defaults and deprecating legacy options, which 7.0 removed. The TypeScript versions page lists what each release added, and the tooling hub explains how to upgrade.
Node.js 22.18 and later can also run .ts files directly by stripping their types, without type checking. You still run tsc to check the code.
Recommended reading path
Section titled โRecommended reading pathโ- TypeScript basics: four tutorials, in order: types and inference, functions and generics, objects, interfaces and classes, and modules and compilation.
- Topic hubs: eight pages that explain every TypeScript feature in depth, starting with the core type system and type narrowing.
- Features by topic: a one-page index that maps each feature, and the version that introduced it, to its section in the hubs.
- Versions: release history from TypeScript 1.0 to 7.0.
- Interview questions: questions on the type system, generics, utility types and advanced patterns.
Browse by hub
Section titled โBrowse by hubโ| Hub | Focus |
|---|---|
| Core type system | Interfaces, unions, intersections, tuples, index signatures and as const. |
| Type narrowing | Null checks, type guards, discriminated unions and assertions. |
| Generics and functions | Generics, constraints, overloads and async functions. |
| Classes and decorators | Access modifiers, abstract classes, override, this parameters and decorators. |
| Advanced types | keyof, conditional, mapped and template literal types. |
| Utility types | Partial, Omit, Record, Exclude, ReturnType and more. |
| Declarations and modules | .d.ts files, declaration merging, augmentation and namespaces. |
| Tooling and project structure | tsconfig.json, module settings, project references and TypeScript 7. |
Related sections
Section titled โRelated sectionsโ- JavaScript: the language TypeScript builds on. Runtime features such as classes, promises and modules are explained there.