4610 Commits

Author SHA1 Message Date
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
Andrew Branch 7715955f89 Fix helpers emit for .cjs files in ESM module mode (#61814) 2025-06-06 15:08:04 -07:00
Mateusz Burzyński fa2a0fc5a2 Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors (#61824) 2025-06-06 14:00:25 -07:00
Mateusz Burzyński 51dcd9001d Cache mapper instantiations (#61505) 2025-06-06 12:21:17 -07:00
magic-akari ac03ba4f02 fix(checker): report error when using bigint as enum key (#61777) 2025-06-05 16:37:47 -07:00
Mateusz Burzyński b86ab7dbe0 Stop reassigning .valueDeclaration to avoid replacing earlier declarations with late ones (#60857) 2025-05-15 09:51:34 -07:00
Mateusz Burzyński 0fb5e3a8cf Preserve type parameter constraint in emitted mapped types while preserving their distributivity (#54759) 2025-05-12 10:54:34 -07:00
Zzzen 5e36778330 check usage before declaration for decorators (#50372)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2025-05-02 14:01:09 -07:00
Zzzen e37ca49c70 arguments should not be allowed in class static block (#48172)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-05-02 06:38:33 -07:00
Hans Brende 75202af2cc Fix #61098 (#61113) 2025-04-24 13:55:56 -07:00
Andrew Branch 6afd0fb73f Fix crash when serializing default export in error (#61582) 2025-04-16 09:43:33 -07:00
Fróði Karlsson 29e6d6689d Fix lib.includes('dom') check in containerSeemsToBeEmptyDomElement (#61481) 2025-03-25 16:24:52 -07:00
Daniel Rosenwasser 4dc677b292 Fix errors on type assertions in erasableSyntaxOnly (#61452) 2025-03-19 16:25:22 -07:00
Titian Cernicova-Dragomir a00b324ab2 Fix serialization of accessor types in declaration files. (#61392) 2025-03-14 12:36:08 -07:00
Titian Cernicova-Dragomir c85e626d8e Rename type parameters when they are shadowed. (#61342) 2025-03-04 11:34:32 -08:00
Jake Bailey 15392346d0 Ban old-style type assertions under erasableSyntaxOnly (#61244) 2025-02-28 11:10:43 -08:00
Mateusz Burzyński b97eafbf3b Fixed accidentally reused comments between files in the emitter (#61261)
Co-authored-by: michaelm <michael.mitchell@airtable.com>
2025-02-26 12:48:59 -08:00
Mateusz Burzyński 7507b055de Don't widen unique symbols annotated by effective type nodes in JS files (#61180) 2025-02-24 11:53:10 -08:00
Chiri Vulpes 2bed7feee8 Account for right operands & fix a weird error message for leftmost nullish literals in checkNullishCoalesceOperands (#59569) 2025-02-21 14:17:08 -08:00
Mateusz Burzyński 0d016920e6 Infer from annotated return type nodes before assigning contextual parameter types (#60964) 2025-02-20 12:06:49 -08:00
Michal Maršálek 12c232333b Fix of #58996 (#59155)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-02-20 11:41:31 -08:00
Jake Bailey c9cb6c3c34 Fix mistakenly disallowed default export under erasableSyntaxOnly (#61210) 2025-02-18 08:06:11 -08:00
Jake Bailey 0f4737e0d5 Ban import=require and export= under erasableSyntaxOnly (#61175) 2025-02-14 12:55:17 -08:00
Gabriela Araujo Britto c3ae7c418f Revert return type narrowing (#61136) 2025-02-07 10:55:34 -08:00
Wesley Wigham caf1aee269 Computed names in declarations files are resolved even when non-literal, preserve computed names when expressions are entity names (#60052) 2025-01-24 11:44:54 -08:00
Jake Bailey 220706eb03 Add new option "libReplacement" (#60829) 2025-01-23 17:34:52 -08:00
uhyo 0e371c4bf5 fix: do not use JSX.ElementChildrenAttribute under jsx: react-jsx or jsx: react-jsxdev (#60880) 2025-01-23 16:03:08 -08:00
Ryan Cavanaugh 2c865e461e --erasableSyntaxOnly (#61011)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-01-23 15:56:35 -08:00
Mateusz Burzyński efe07a0921 Narrow types by satisfies expressions (#60782) 2025-01-22 13:44:58 -08:00
Mateusz Burzyński 7f802bbca2 Fixed an issue with for statement's incrementor missing continue's control flow information (#60950) 2025-01-22 11:40:58 -08:00
Ron Buckton df54a3d6b4 Add non-generic fallback overloads for TypedArray constructors (#60934) 2025-01-09 16:28:50 -05:00
Mateusz Burzyński a5196c7d3b Narrow types by typeof operands with extra parenthesis (#60928) 2025-01-07 12:26:00 -08:00