Commit Graph

17940 Commits

Author SHA1 Message Date
Anders Hejlsberg
cc05d940a2 Propagate variance reliability (#62604) 2025-10-31 11:51:01 -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
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
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
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
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
Mateusz Burzyński
d3be7e171b Allow line break before import attributes with keyword (#62593) 2025-10-14 09:51:33 -07:00
Mateusz Burzyński
6ba7d3560f Consistently resolve to the errorType on arguments with error (#62549) 2025-10-05 15:40:28 -07:00
dontwanttothink
3a68348fcb Add type definitions for Uint8Array to/from base64 methods (#61696) 2025-10-03 14:01:57 -07: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
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
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
Janhvi Chitnis
233f392d67 fix(error message): fixes issue in error message TS1355 (#62465) 2025-09-19 08:47:27 -07:00
Sheetal Nandi
e9bcbe6ef7 Fix incorrectly ignored dts file from project reference for resolution (#62438) 2025-09-11 19:14:30 +00:00
Copilot
cdfc519b99 Switch libReplacement to false by default (#62391)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-09-10 17:02:03 -07:00
Mateusz Burzyński
4f94cb2aa4 Fix parenthesizer rules for manually constructed binary expressions with ?? and ||/&& mix (#62311) 2025-09-09 10:06:00 -07:00
Andrew Branch
7956c00166 Deprecate --moduleResolution node10 (#62338) 2025-08-27 13:51:20 -07:00
Andrew Branch
e635bb97f5 Allow --module bundler --moduleResolution commonjs (#62320) 2025-08-22 14:17:18 -07:00
Jake Bailey
73c0bc8bc8 Update deps (#62285) 2025-08-14 12:17:24 -07:00
René
e39d5775b6 Update Node.js core modules (#62201) 2025-08-11 13:16:40 -07:00
Daniel Rosenwasser
c6a1812e0c Bump version to 6.0 (#62162) 2025-07-31 16:21:24 -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
Daniel Rosenwasser
be86783155 Give more specific errors for verbatimModuleSyntax (#62113) 2025-07-23 15:38:01 -07:00
Mateusz Burzyński
d5a414cd1d Don't use noErrorTruncation when printing types with maximumLength set (#62091) 2025-07-22 08:56:52 -07:00
Jake Bailey
9e20e032ef Clear out checker-level stacks on pop (#62016) 2025-07-08 07:54:20 -07:00
Idan Goshen
3ba257ffac fix: diagnostic message for class name 'Object' when targeting different ECMAScript versions (#61850) 2025-06-30 15:46:33 -07:00
Anthony Fu
e58dde511c perf: improve regexp performance by using non-capturing groups (#58551) 2025-06-30 15:12:49 -07:00
Mateusz Burzyński
1ea1809e16 Properly disallow yield in bodyless arrows (#61976) 2025-06-30 14:52:49 -07:00
Mateusz Burzyński
b70d4d7e4b Revert change to type print in an error message (#61977) 2025-06-30 14:30:04 -07:00
Mateusz Burzyński
91cdbd518c Fixed nullish coalesce operator's precedence (#61372) 2025-06-30 13:49:03 -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
5519be3ae1 Fixed crash when getting a definition for a class member with a computed name and an override modifier (#60631) 2025-06-30 12:48:39 -07:00
Mateusz Burzyński
2ea2ecfdc1 Fixed crash in hasVisibleDeclarations related to binding elements (#61352) 2025-06-30 11:57:47 -07:00
Mateusz Burzyński
c33f83ac9b Fixed a printer crash caused by empty parameter modifiers (#60537) 2025-06-30 11:14:10 -07:00
Roman A
dfb7488978 Fix capitalisation for checkJs (#61795) 2025-06-29 09:24:21 -07:00
Ryan Cavanaugh
efeb135c6f Revert #54442 and add a testcase (#61955) 2025-06-27 08:52:58 -07:00
Gabriela Araujo Britto
02672d281c Use jsx language variant for jsx file scanning in getChildren (#61928) 2025-06-25 15:37:21 -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