TypeScript
Dev ToolsTypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Release History
v6.0-beta1 fixThis release announces the beta availability of TypeScript 6.0.0 and links to the resolved issues for this milestone.
v5.9.2TypeScript 5.9.2 is a stable release that points to the correct commit following the Beta and RC phases, with no specific functional changes over the previous 5.9 iterations.
v5.9-rcTypeScript 5.9 RC release including bug fixes and updates tracked across the 5.9.0 Beta and 5.9.1 RC milestones.
v5.9-betaThis is the Beta release of TypeScript 5.9.0. The tag was recreated to ensure alignment with the npm package content.
v5.8.3Breaking4 fixes5 featuresTypeScript 5.8 introduces the --erasableSyntaxOnly flag, support for Node.js 18 module resolution, and optimizations for ESM interoperability while deprecating older import assertion syntax.
v5.9.31 fixTypeScript 5.9.2 is a stable release primarily focused on consolidating fixes from the 5.9 development cycle, with no specific new changes introduced between 5.9.1 and 5.9.2.
v5.8.2Breaking3 fixes5 featuresTypeScript 5.8 introduces the 'erasableSyntaxOnly' flag, support for 'require()' of ESM in Node.js, and stricter checks for 'use strict' prologues. It focuses on performance optimizations and better compatibility with modern JavaScript runtimes.
v5.8-rcBreaking1 fix5 featuresTypeScript 5.8 introduces the --erasableSyntaxOnly flag, improves type checking for conditional return expressions, and updates import attribute requirements to align with modern Node.js standards.
v5.8-betaBreaking1 fix4 featuresTypeScript 5.8 Beta introduces the --erasableSyntaxOnly flag for better compatibility with non-TS transpilers and refines module resolution for Node.js environments.
Common Errors
NotFoundError1 reportThe "NotFoundError" in TypeScript often arises when the compiler can't find a specified module, file, or declaration. To fix this, first ensure all necessary packages are installed by running `npm install` or `yarn install`. Then, double-check import paths and file names for typos or incorrect relative/absolute paths in your TypeScript code and tsconfig.json.
BadRequestError1 reportBadRequestError in TypeScript often arises when the compiler inadequately infers generic types within asynchronous functions, especially those involving discriminated unions like Result/Ok/Err. To fix this, explicitly provide type arguments to the function call or add type annotations to guide the compiler's inference process, ensuring the return type is properly resolved, especially when dealing with branching logic. Also, verify that your type definitions don't have circular references or overly complex constraints that confuse the type checker.
InvalidInputError1 reportInvalidInputError usually indicates that the provided input fails to meet the expected type or format, especially within conditional branches or exhaustiveness checks. Resolve this by carefully validating input types, ensuring all possible input values are handled in conditional statements (e.g., using `else` or a `default` case in switch statements), or employing type guards to narrow down input types before use. Alternatively, if using discriminated unions, verify that exhaustiveness checks cover all union members by using `never` or a similar mechanism.
NotAnError1 reportThe "NotAnError" TypeScript error usually arises when a type representing an error is used where a generic type or conditional type expects a concrete error class or interface. Ensure that your error types are properly defined (e.g., using `class` or `interface`) and that you are correctly referencing or extending built-in `Error` types to satisfy the compiler's type constraints; explicitly cast or use type guards if necessary to narrow the type to a known error type.
Related Dev Tools Packages
Empowering everyone to build reliable and efficient software.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Next generation frontend tooling. It's fast!
An extremely fast Python package and project manager, written in Rust.
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Rich is a Python library for rich text and beautiful formatting in the terminal.
Subscribe to Updates
Get notified when new versions are released