4641 Commits

Author SHA1 Message Date
Jake Bailey
b19a9da2a3
Fix transform crash with destructured parameter property (#63043) 2026-01-23 23:48:05 +00:00
Daniel Rosenwasser
58ed4bcfe4
More test suite strictness fixups (#63022) 2026-01-21 00:19:04 +00:00
Daniel Rosenwasser
7f6a84673d
Prepare tests for --noImplicitAny (#62989)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-16 19:09:29 +00:00
Mateusz Burzyński
a586c340a2
Fixed crash related to index type deferral on generic mapped types with name types (#60528)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-15 21:20:56 +00:00
Daniel Rosenwasser
64d1978944
More strictness prep (#62984) 2026-01-14 00:19:55 +00:00
Ryan Cavanaugh
631affd1d7
Deprecate --outFile (#62981) 2026-01-13 20:40:31 +00:00
Mateusz Burzyński
7bb5ba3de6
Discard types that reduce to never before discriminating by discriminable items (#62275) 2026-01-13 17:13:48 +00:00
Daniel Rosenwasser
f5ccf4345d
Test updates for strict initialization (#62958) 2026-01-09 23:47:35 +00:00
Copilot
c574e4090d
Fix "never nullish" diagnostic missing expressions wrapped in parentheses (#62789)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-09 18:57:02 +00:00
Mateusz Burzyński
632479f28d
Fixed an issue causing spurious "used before being assigned" errors in for of/in loops (#61376)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-09 00:27:42 +00:00
Anders Hejlsberg
f3770c9b89
Fix crash in abstract property checking (#62923) 2025-12-28 21:12:38 +00:00
Anders Hejlsberg
1f5f9f34d3
Fix crash in mixin checking (#62928) 2025-12-26 23:15:54 +00:00
Mateusz Burzyński
2dfdbbabae
Fixed crash when adding unreachable code diagnostic in situations with missing nodes (#62914) 2025-12-19 13:18:44 +00:00
Jake Bailey
d7ae3aa940
Fix accidental module replacements in tests (#62890) 2025-12-12 16:33:41 +00:00
Ryan Cavanaugh
16b933fb7b
Deprecate module syntax (#62876) 2025-12-12 00:21:01 +00:00
Mateusz Burzyński
366da34ae6
Improve inference by not considering thisless functions to be context-sensitive (#62243) 2025-12-10 19:08:29 +00:00
Mateusz Burzyński
dafed7f25b
Add tests for contextual param type assignment in nested return type inference scenarios (#62189) 2025-12-08 18:01:10 +00:00
Mateusz Burzyński
38d95c8001
Avoid silentNeverType leaking into generator types inferred based on inner generic calls at yields (#62283) 2025-12-05 10:47:37 -08:00
Mateusz Burzyński
0752278137
Widen reverse mapped type properties to fix them being treated as EPC-valid sources (#62722) 2025-12-05 10:45:33 -08:00
Mateusz Burzyński
28fbc0a1ef
Filter return type inferences by constraint applicability (#58910) 2025-12-03 09:46:59 -08:00
Jake Bailey
09e31cf04a
Move unreachable checks to checker (#62751) 2025-11-13 17:50:42 -08:00
Jake Bailey
ea48dedd7d
Shrink relationComplexityError test size (#62754) 2025-11-13 21:44:23 +00:00
Nico Rainhart
48244d89f8
fix: [Symbol.iterator]() lost on union with never (#62661) 2025-11-10 15:11:13 -08:00
Anders Hejlsberg
cc05d940a2
Propagate variance reliability (#62604) 2025-10-31 11:51:01 -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
2a90a739c1
Fixed an issue with "slow" sync iteration types spoiling cached value for async ones (#62676) 2025-10-29 15:56:21 -07:00
Andrew Branch
42f6576e83
Deprecate --module amd, umd, system, none; --moduleResolution classic; change defaults (#62669) 2025-10-24 14:57:57 -07:00
Copilot
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
Andrew Branch
84f4856709
Fix fourslash tests (#62641) 2025-10-20 19:47:59 +00:00
Prathmesh Ravindra Salunkhe
0b6a241886
Fix: Make discriminant property selection order-independent in unions (#62512) (#62516) 2025-10-13 10:38:34 -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
Hans Brende
31a0ead46d
Don't compare "missing" to undefined in compareProperties under exactOptionalPropertyTypes (#61683) 2025-09-30 13:15:38 -07:00
Anders Hejlsberg
97610a8a63
Port microsoft/typescript-go#1757 (#62501) 2025-09-29 14:42:29 -07:00
Jake Bailey
96acaa5290
Remove no-default-lib (#62435) 2025-09-24 16:16:14 -07:00
Ryan Cavanaugh
904e7dd97d
Enable noUncheckedSideEffectImports by default (#62443) 2025-09-22 12:06:04 -07:00
Greggman
3320dfdfcf
Add missing Float16Array constructors (#62351) 2025-09-09 11:22:55 -07:00
Ryan Cavanaugh
3f5c77f1f9
Replace all testcase instances of 'module' with 'namespace' (#62399) 2025-09-08 16:07:45 -07:00
Andrew Branch
7956c00166
Deprecate --moduleResolution node10 (#62338) 2025-08-27 13:51:20 -07:00
Copilot
39c5d01877
Fix private identifier fields generating errors in class expression declarations (#62155)
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: weswigham <2932786+weswigham@users.noreply.github.com>
Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2025-07-31 15:51:51 -07:00
Mateusz Burzyński
c35b14335a
Keep accessors as accessors in emitted anonymous class declarations (#60853) 2025-06-30 13:19:53 -07:00
Mateusz Burzyński
3267e426e3
Handle silentNeverType in iteration-related functions (#61317) 2025-06-30 12:52:51 -07:00
Mateusz Burzyński
2ea2ecfdc1
Fixed crash in hasVisibleDeclarations related to binding elements (#61352) 2025-06-30 11:57:47 -07:00
Ryan Cavanaugh
efeb135c6f
Revert #54442 and add a testcase (#61955) 2025-06-27 08:52:58 -07:00
Copilot
6e519c59c1
Fix BigInt literal error in ambient contexts when targeting < ES2020 (#61935)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2025-06-25 14:29:50 -07:00
Copilot
1ed8674bba
Allow accessor properties in ambient contexts when targeting ES5 (#61927)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2025-06-25 14:29:02 -07:00
Jake Bailey
dca71700ba
Fix bad JSON syntax in tests, use JSON.parse first for perf (#61901) 2025-06-24 14:51:46 -07:00
Jake Bailey
12e09f44f6
Port "Improve type discrimination algorithm" from tsgo (#61828) 2025-06-09 16:20:15 -07:00
Anders Hejlsberg
34d1ea68f6
Fix type variable leaks and cache inconsistencies (#61668) 2025-06-09 14:20:27 -07:00
Andrew Branch
cb38d99d08
Add --module node20 (#61805) 2025-06-09 14:20:00 -07:00
Mateusz Burzyński
355b9e0984
Avoid resolving source prop type when the target is unknown/any (#61660) 2025-06-06 15:17:50 -07:00