copilot-swe-agent[bot] d85f072ddd Fix: Only allow synthetic defaults for declaration files in export specifiers
Corrected the fix to only allow synthetic defaults when re-exporting
from declaration files (not TypeScript source files). This aligns with
the issue description which states that declaration files may correspond
to CommonJS modules at runtime where a default import can reference the
whole module.exports symbol.

Only tests targeting .d.ts files should pass without errors:
- reexportMissingDefault4.ts (targets b.d.ts) ✓
- reexportMissingDefault5.ts (targets b.d.ts) ✓

Tests targeting .ts files correctly maintain their errors:
- reexportMissingDefault.ts, 1, 2, 3, 6, 7 (all target b.ts)

Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>
2025-11-14 01:06:49 +00:00

TypeScript

CI npm version Downloads OpenSSF Scorecard

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account.

Find others who are using TypeScript at our community page.

Installing

For the latest stable version:

npm install -D typescript

For our nightly builds:

npm install -D typescript@next

Contribute

There are many ways to contribute to TypeScript.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Roadmap

For details on our planned features and future direction, please refer to our roadmap.

Description
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Readme 5.3 GiB
2025-07-30 13:28:01 -05:00
Languages
TypeScript 98%
jsonc 1.9%
JavaScript 0.1%