Commit Graph

12959 Commits

Author SHA1 Message Date
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
René
6121f45347 lib.es2017: Move SharedArrayBuffer[Symbol.species] onto constructor interface (#61271) 2025-02-26 16:47:50 -05: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
Oleksandr T.
2c3be449ff fix(60887): Incorrect Formatting on if (a) try {} finally {} (#60898) 2025-02-24 11:51:28 -08:00
Kenta Moriuchi
8ae98d02d8 Fix to use string literal type in ArrayBuffer's Symbol.toStringTag (#60150) 2025-02-24 14:17:35 -05:00
Michal Maršálek
244303f92f make exported destructured discriminated union narrowing work (#59673) 2025-02-24 10:29:01 -08:00
Oleksandr T.
1cd8e20f94 fix(61167): Incorrect "Import may be converted to a default import" autofix for import export (#61171) 2025-02-21 15:23:22 -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
edc497bb2b Find method references through base abstract classes implementing an interface (#61234) 2025-02-21 11:08:34 -08:00
Mateusz Burzyński
b95187d1ce Provide string completions for in keyword checks (#60272) 2025-02-20 14:01:52 -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
Mateusz Burzyński
5695986fbd Fixed JSDoc checking on enum members (#61184) 2025-02-20 10:48:33 -08:00
Ben Lickly
3f416e0f52 Fix quick fix for isolatedDeclarations to keep trailing unknown in generics (#61227) 2025-02-19 17:28:50 -08:00
Mateusz Burzyński
71b16ea186 Treat contextually typed functions in JS files as typed (#56907) 2025-02-19 16:58:32 -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
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
739d729ecc [moveToFile] Fix symbols with empty declarations being treated as importable (#61084) 2025-01-30 13:49:26 -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
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
Isabel Duan
c5058f0066 allow calling goToDef on modifiers of named declarations (#60384) 2025-01-23 17:30:35 -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
Andrew Branch
329387d76f Fix missing failed lookup locations when resolving bare-specifier package.json "imports" (#60924) 2025-01-23 15:28:53 -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
Andrew Branch
b78f466812 Fix ESM/CJS resolution cache collision in non-nodenext resolution modes (#60910) 2025-01-21 11:10:51 -08:00
Mateusz Burzyński
8da951cbb6 Fixed "Delete all unused declarations" to delete self-referential functions (#60888) 2025-01-17 22:11:41 -08:00
Mateusz Burzyński
0745e6a0e0 Fixed wrong error being reported on required initialized parameters with isolatedDeclarations (#60980) 2025-01-17 22:08:12 -08:00
Oleksandr T.
a086a3c42b fix(60563):@import * as namespace cannot be used with @implements (#60566) 2025-01-17 14:54:28 -08:00
Oleksandr T.
589f734e5e fix(60375): Parameter inlay hint is incorrect when function has a this type (#60378) 2025-01-17 13:30:35 -08:00
Oleksandr T.
5170645f4e fix(60592): JSDoc implements space sensetive (#60640) 2025-01-17 12:12:12 -08:00
Oleksandr T.
f99803d05f fix(60551): satisfies is shown on go-to-implementation (#60801) 2025-01-17 12:05:26 -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
Mateusz Burzyński
12e205b1e9 Don't try to add an implicit undefined for mapped properties outside of strictNullChecks (#60393) 2024-12-19 11:47:26 -08:00
Mateusz Burzyński
0dda037f9f Improve unknown narrowing by negated type predicates (#60795) 2024-12-18 10:44:43 -08:00
Andrew Branch
f69580f821 Add --module node18 (#60722) 2024-12-13 10:16:23 -08:00
Andrew Branch
44e84bb7b0 Do not require import attribute on type-only JSON import (#60749) 2024-12-12 11:42:25 -08:00
Isabel Duan
3d2b8f33d4 Remove reference not found errors from jsx: preserve (#60687) 2024-12-09 10:38:37 -08:00