# Announcing TypeScript 7.1 Beta

DevFeed: [Announcing TypeScript 7.1 Beta](<https://devfeed.tech/articles/announcing-typescript-7-1-beta-91306.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta/>)

Author: Daniel Rosenwasser

Published: 2026-10-20T17:53:06Z

Content type: release

Language: en

Sources: [TypeScript](<https://devfeed.tech/sources/typescript.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [import](<https://devfeed.tech/topics/import.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>)

Tags: [ambient](<https://devfeed.tech/tags/ambient.md>), [api](<https://devfeed.tech/tags/api.md>), [astro](<https://devfeed.tech/tags/astro.md>), [beta](<https://devfeed.tech/tags/beta.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [builds](<https://devfeed.tech/tags/builds.md>), [bundlers](<https://devfeed.tech/tags/bundlers.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [import](<https://devfeed.tech/tags/import.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [modules](<https://devfeed.tech/tags/modules.md>), [npm](<https://devfeed.tech/tags/npm.md>), [release](<https://devfeed.tech/tags/release.md>), [runtimes](<https://devfeed.tech/tags/runtimes.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [typescript-7](<https://devfeed.tech/tags/typescript-7.md>)

## AI overview

TypeScript 7.1 Beta adds import attributes to ambient module declarations, letting projects require attributes such as `type: "css"` and select the corresponding import type; those declarations do not validate files on disk and must be supplied by end users. It supports proposed source imports, including WebAssembly use, with `--module` set to `esnext`, `nodenext`, or `preserve` and an appropriate `esnext` library or target. The release adds stable `es2026` target and library declarations, plus a new API for compilation and incremental snapshots. API objects and snapshots must be disposed, and file notifications and non-host file changes must be supplied explicitly. Content mappers expose embedded code in formats such as Vue files to TypeScript tooling; running them from the command line requires `--runExternalCode`, and VS Code requires workspace trust and mapper permissions. The beta also tightens checks for distributive type parameters, which may require changes to existing code.

## Source excerpt

Today we're excited to announce the beta release of TypeScript 7.1! npm install -D typescript@beta Let's take a look at what's new in TypeScript 7.1! Support for Import Attributes in Ambient Modules Import attributes are metadata that are attached to import statements. Typically, they're meant to instruct runtimes and bundlers on how to interpret the [...] The post Announcing TypeScript 7.1 Beta appeared first on TypeScript.