Commit Graph
17869 Commits
Author SHA1 Message Date
Andrew Branch 81c951894e Fix getResolvePackageJsonImports utility (#61707) 2025-05-15 17:49:35 -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
Ulrich Stark 7156300cee Fix unwanted constant comparisons potentially causing bugs (#61655) 2025-05-09 15:20:44 -07:00
Gabriela Araujo Britto 0ee67b517f Add configurable maximum hover length (#61662) 2025-05-09 13:31:39 -07:00
ZzzenandNathan Shively-Sanders 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
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
Tom Mrazauskas 38b78b70d2 Add the .getNonPrimitiveType() method to the TypeChecker (#61562) 2025-04-24 14:08:52 -07:00
Hans Brende 75202af2cc Fix #61098 (#61113) 2025-04-24 13:55:56 -07:00
Sebastian "Sebbie" Silbermann 0a1aa6d6eb Deemphasize old JSX transform (#61586) 2025-04-17 11:02:55 -07:00
Andrew Branch 6afd0fb73f Fix crash when serializing default export in error (#61582) 2025-04-16 09:43:33 -07:00
Gabriela Araujo Britto 069de743db Expandable hover (#61492) 2025-04-15 12:14:38 -07:00
Mateusz Burzyński eef7c14ef1 Treat functions with @type tags on parameters as typed in JS files (#61177) 2025-04-14 15:35:20 -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
Oleksandr T. ee3dd7264b fix(60908): Unexpected "'Type' is declared but its value is never read." error with jsdoc @import syntax (#60921) 2025-03-17 13:29:48 -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ńskiandmichaelm 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
Michal Maršálek 244303f92f make exported destructured discriminated union narrowing work (#59673) 2025-02-24 10:29:01 -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šálekandJake Bailey 12c232333b Fix of #58996 (#59155)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-02-20 11:41:31 -08:00
Mateusz Burzyński 5695986fbd Fixed JSDoc checking on enum members (#61184) 2025-02-20 10:48:33 -08:00
Michal Maršálek d8f6aa7c1f Remove redundant getStringLiteralType call (#59803) 2025-02-20 10:48:09 -08:00
Mateusz Burzyński 71b16ea186 Treat contextually typed functions in JS files as typed (#56907) 2025-02-19 16:58:32 -08:00
Daniel Rosenwasser 246507f7f9 Bump version to 5.9 (#61218) 2025-02-18 11:16:22 -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
Mateusz Burzyński df342b7206 Fixed rewriteRelativeImportExtensions for import() within call expressions (#61154) 2025-02-10 15:02:37 -08:00
Jake Bailey e1629e540e Pass ignoreErrors=true to more resolveEntityName callers (#61144) 2025-02-10 09:26:52 -08:00
Gabriela Araujo Britto 34ea32f8ce Revert "Proposed expandable hover API" (#61132) 2025-02-07 12:44:02 -08:00
Gabriela Araujo Britto c3ae7c418f Revert return type narrowing (#61136) 2025-02-07 10:55:34 -08:00
Andrew Branch 019fec8bf2 Fix accidental ESM-mode directory module lookup in package non-root (#61082) 2025-01-30 10:17:14 -08:00
Daniel Rosenwasser 0652664e64 Fix error message incorrectly referencing 'asserts' instead of 'assert'. (#61066) 2025-01-28 14:42:35 -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
Tristan Menzel f28c5180df Expose method for retrieving inferred generic type arguments for a signature on the TypeChecker (#59637) (#60201) 2025-01-23 16:43:59 -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 CavanaughandJake Bailey 2c865e461e --erasableSyntaxOnly (#61011)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-01-23 15:56:35 -08:00
Andrew Branch 329387d76f Fix missing failed lookup locations when resolving bare-specifier package.json "imports" (#60924) 2025-01-23 15:28:53 -08:00
Jake Baileyandcplepage 51d9a98c55 Ensure createProgram stops referencing rootNamesOrOptions to ensure oldProgram is GC'd (#61034)
Co-authored-by: cplepage <lepage.charlesphilippe@gmail.com>
2025-01-23 15:05:21 -08:00
Andrew Branch 5e52b28ee6 Support require(esm) in --module nodenext (#60761) 2025-01-22 16:56:17 -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
Mateusz Burzyński ce73b174f1 Treat BigInt type references in JSDoc as intended bigints (#60863) 2025-01-22 08:33:00 -08:00
Kenta Moriuchi 1c4083f4ed Add ESNext float16 features and fix TypedArrays of BigInt types (#60151) 2025-01-21 22:04:14 -05:00
Andrew Branch b78f466812 Fix ESM/CJS resolution cache collision in non-nodenext resolution modes (#60910) 2025-01-21 11:10:51 -08:00