copilot-swe-agent[bot] and andrewbranch
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
copilot-swe-agent[bot] and andrewbranch
7f69f3ca5e
Fix: Respect allowSyntheticDefaultImports for export specifiers
...
When re-exporting with `export { default as Foo } from "./b"`, the
compiler should respect the `allowSyntheticDefaultImports` option even
for TypeScript source files (not just declaration files).
The fix adds logic in `getTargetofModuleDefault` to allow synthetic
defaults for export specifiers when `allowSyntheticDefaultImports` is
enabled. This is consistent with the intent of the option to allow
treating modules without a default export as if they had one.
Fixes tests:
- reexportMissingDefault.ts
- reexportMissingDefault1.ts
- reexportMissingDefault2.ts
- reexportMissingDefault3.ts
Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com >
2025-11-14 00:43:52 +00:00
copilot-swe-agent[bot]
f352f1c23f
Initial plan
2025-11-14 00:06:19 +00:00
Jake Bailey
ea48dedd7d
Shrink relationComplexityError test size ( #62754 )
2025-11-13 21:44:23 +00:00
Ryan Cavanaugh
0f766a9aa7
Remove watchdogs workflow ( #62690 )
2025-11-12 08:43:14 -08:00
Mateusz Burzyński
4a957b74ea
Fixed control flow Analysis of aliased discriminants with parenthesized initializers ( #61788 )
2025-11-11 11:41:36 -08:00
Nico Rainhart
48244d89f8
fix: [Symbol.iterator]() lost on union with never ( #62661 )
2025-11-10 15:11:13 -08:00
Jake Bailey
efca03ffed
Switch 1ESPT pipelines to 1ESPT-AzureLinux3 ( #62727 )
2025-11-07 12:07:17 -08:00
dependabot[bot]
6f4fb01458
Bump github/codeql-action from 4.31.0 to 4.31.2 in the github-actions group ( #62710 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-03 07:58:52 -08:00
CSIGS@microsoft.com
1654ebfb54
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251031193321730 to main ( #62702 )
2025-10-31 15:39:17 -07:00
Anders Hejlsberg
cc05d940a2
Propagate variance reliability ( #62604 )
2025-10-31 11:51:01 -07:00
Jake Bailey
9222837872
Switch custom runners from mariner-2.0 to azure-linux-3 ( #62697 )
2025-10-31 10:30:20 -07:00
CSIGS@microsoft.com
ac7825c484
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251030193607558 to main ( #62695 )
2025-10-30 16:50:02 -07:00
Mateusz Burzyński
b44ac69d5b
Keep returned (and yielded) literal types as const when their types using const type variables ( #56859 )
2025-10-30 11:59:09 -07:00
Mateusz Burzyński
f6f4eab587
Allow implicit undefined returns when the contextual union type contains it ( #57912 )
2025-10-30 11:56:21 -07:00
Mateusz Burzyński
2b2d6cebcb
Improve references search and quick info on properties with type errors within nullable contextual types ( #61383 )
2025-10-30 11:54:29 -07:00
Mateusz Burzyński
6fd2874d0d
Use comparability for discriminant properties when narrowing types for a default switch clause ( #61211 )
2025-10-30 14:20:13 +00:00
Mateusz Burzyński
2a90a739c1
Fixed an issue with "slow" sync iteration types spoiling cached value for async ones ( #62676 )
2025-10-29 15:56:21 -07:00
Mateusz Burzyński
11ee01b22d
Add missing whitespace after type parameter's modifiers in interactive inlay hints ( #62246 )
2025-10-29 09:24:57 -07:00
dependabot[bot]
8ea03f88d0
Bump the github-actions group with 2 updates ( #62678 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 01:02:49 -07:00
Andrew Branch
42f6576e83
Deprecate --module amd, umd, system, none; --moduleResolution classic; change defaults ( #62669 )
2025-10-24 14:57:57 -07:00
Andrew Branch
f450c1b80c
Deprecate esModuleInterop and allowSyntheticDefaultImports (default to true) ( #62567 )
2025-10-22 16:50:03 -07:00
542b09547f
Fix TS2783 false positive for union types in object spread expressions ( #62656 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com >
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com >
Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com >
2025-10-22 16:44:10 -07:00
Mateusz Burzyński
cbc2059b53
Fixed a crash when parsing invalid decorator on await expression ( #62659 )
2025-10-22 12:03:09 -07:00
Kevin Brey
af3a3779de
add allowJs default value description ( #62611 )
2025-10-20 15:43:26 -07:00
Andrew Branch
84f4856709
Fix fourslash tests ( #62641 )
2025-10-20 19:47:59 +00:00
dependabot[bot]
16a52ed693
Bump the github-actions group across 1 directory with 2 updates ( #62632 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-20 11:27:55 -07:00
Mateusz Burzyński
d8aafb3197
Handle more child types when generating navigation tree items for export default ( #62620 )
2025-10-17 09:44:34 -07:00
Mateusz Burzyński
d3be7e171b
Allow line break before import attributes with keyword ( #62593 )
2025-10-14 09:51:33 -07:00
Prathmesh Ravindra Salunkhe
0b6a241886
Fix: Make discriminant property selection order-independent in unions ( #62512 ) ( #62516 )
2025-10-13 10:38:34 -07:00
CSIGS@microsoft.com
10b2cf52c3
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251001192403117 to main ( #62521 )
2025-10-09 12:50:23 -07:00
Mateusz Burzyński
1112daead7
Add extra test for extending multiple bases with incompatible optional property under EOPT ( #62574 )
2025-10-09 17:34:21 +00:00
Jake Bailey
91b32ac281
Remove circularity, rootDir errors from node modules compiler tests ( #62568 )
2025-10-09 00:09:58 +00:00
dependabot[bot]
fe592f1627
Bump the github-actions group with 2 updates ( #62551 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-06 00:07:13 -07:00
Mateusz Burzyński
6ba7d3560f
Consistently resolve to the errorType on arguments with error ( #62549 )
2025-10-05 15:40:28 -07:00
Jake Bailey
d0d675a363
Update DOM types for FileSystemDirectoryHandle changes ( #62538 )
2025-10-03 16:36:42 -07:00
dontwanttothink
3a68348fcb
Add type definitions for Uint8Array to/from base64 methods ( #61696 )
2025-10-03 14:01:57 -07:00
Jake Bailey
ced90d94b5
Move Iterable/AsyncIterable into main DOM/WebWorker libs ( #62111 )
2025-10-02 15:52:50 -07:00
Jake Bailey
9c4c377044
Update DOM types ( #62496 )
2025-10-02 10:42:42 -07:00
Jake Bailey
837e3a1df9
Fix releaser tag creation ( #62522 )
2025-10-01 13:41:42 -07:00
Jake Bailey
968d5deb8b
Fix incorrect test options ( #62515 )
2025-10-01 00:17:28 +00:00
Andrew Branch
eef6a0cbcf
Deprecate baseUrl ( #62509 )
2025-09-30 14:03:17 -07:00
Hans Brende
31a0ead46d
Don't compare "missing" to undefined in compareProperties under exactOptionalPropertyTypes ( #61683 )
2025-09-30 13:15:38 -07:00
Matt Kantor
d4b15eb56d
Enhance type argument completions ( #62170 )
2025-09-30 13:00:20 -07:00
dependabot[bot]
83ff20281e
Bump the github-actions group across 1 directory with 2 updates ( #62507 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 10:33:44 -07:00
Anders Hejlsberg
e350126ab9
Port microsoft/typescript-go#1764 ( #62510 )
2025-09-29 14:47:59 -07:00
Anders Hejlsberg
97610a8a63
Port microsoft/typescript-go#1757 ( #62501 )
2025-09-29 14:42:29 -07:00
Anders Hejlsberg
1cd5309f7d
Port https://github.com/microsoft/typescript-go/pull/1759 ( #62502 )
2025-09-28 20:55:30 +00:00
Jake Bailey
5f183ad73d
Revert PR 61928 ( #62423 )
2025-09-25 10:22:27 -07:00
Andrew Branch
6f6efb419a
Disable conditional exports fallbacks on null values ( #62483 )
2025-09-25 09:16:51 -07:00