3576 Commits

Author SHA1 Message Date
Nicolò Ribaudo
a69c6d0bb7
Add support for import defer proposal (#60757)
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
Co-authored-by: Nicolò Ribaudo <hell@nicr.dev>
2025-06-06 12:11:21 -07:00
Sheetal Nandi
3dd0a35032
Initialize the map for dts to reference and source to reference when parsing project reference as its always needed (#61746) 2025-06-04 09:55:15 -07:00
Gabriela Araujo Britto
0ee67b517f
Add configurable maximum hover length (#61662) 2025-05-09 13:31:39 -07:00
Tom Mrazauskas
38b78b70d2
Add the .getNonPrimitiveType() method to the TypeChecker (#61562) 2025-04-24 14:08:52 -07:00
Gabriela Araujo Britto
069de743db
Expandable hover (#61492) 2025-04-15 12:14:38 -07:00
Titian Cernicova-Dragomir
a00b324ab2
Fix serialization of accessor types in declaration files. (#61392) 2025-03-14 12:36:08 -07: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
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
Ryan Cavanaugh
2c865e461e
--erasableSyntaxOnly (#61011)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-01-23 15:56:35 -08:00
Oleksandr T.
32e8f8b81c
feat(60475): Add getUnknownType to checker api (#60502) 2025-01-17 11:57:01 -08:00
Andrew Branch
cbac1ddfc7
Skip verifyCompilerOptions when possible on program updates (#60754)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2025-01-09 17:35:20 -08:00
Andrew Branch
f69580f821
Add --module node18 (#60722) 2024-12-13 10:16:23 -08:00
Wesley Wigham
517da72a57
Cache started nonexistent property error checks to prevent reentrancy in the check (#60683) 2024-12-04 15:13:20 -08:00
Billy Janitsch
6f75783184
Fix library inclusions for ES2024 target (#60622) 2024-12-03 17:19:58 -05:00
Gabriela Araujo Britto
30979c2651
Narrow generic conditional and indexed access return types when checking return statements (#56941) 2024-11-05 18:18:24 -08:00
Gabriela Araujo Britto
8d95ac5968
Fix getEffectiveCheckNode (#60309) 2024-11-05 17:14:25 -08:00
Gabriela Araujo Britto
80eeb4ec8d
Proposed expandable hover API (#59940) 2024-11-05 16:41:13 -08:00
Mateusz Burzyński
f478257f06
Remove unused SymbolLinks["bindingElement"] (#60385) 2024-10-31 13:14:17 -07:00
Ron Buckton
e25abe34ae
Error on too many parameters for iterator method (#60321) 2024-10-22 16:00:58 -04:00
Titian Cernicova-Dragomir
476e9ee201
Extract node type printer (#59282) 2024-09-30 09:19:42 -07:00
Isabel Duan
f6d2e73c5a
add jsx fragments to callLikeExpression (#59933) 2024-09-27 15:16:29 -07:00
Andrew Branch
bd3d70058c
Rewrite relative import extensions with flag (#59767) 2024-09-27 12:27:16 -07:00
Kenta Moriuchi
9d98874739
Introduce ES2024 target and fix some types (#58573)
Co-authored-by: indrajitbnikam <indrajitbnikam@gmail.com>
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-09-27 14:58:17 -04:00
Jake Bailey
da1fb07db0
Make noCheck non-internal on CompilerOptions (#60078) 2024-09-26 15:28:42 -07:00
Wesley Wigham
3ad0f75248
Fix occasional silent error emit for JSDoc declaration emit and overzealous node serialization of jsdoc optional parameters. (#60034) 2024-09-25 15:40:10 -07:00
Wesley Wigham
fa0080f480
Support interpreting non-literal computed properties in classes as implicit index signatures (#59860) 2024-09-23 11:09:06 -07:00
Wesley Wigham
e24cc01b08
Cache instantiation expression types early enough to prevent reentrancy during printback (#59931) 2024-09-23 10:46:57 -07:00
Ben Lickly
8230bc66a7
Drop unnecessary type arguments in the isolated declarations quick fix (#59665)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-09-16 10:35:50 -07:00
Isabel Duan
52eaa7b02f
Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Sheetal Nandi
87d0e771a8
Fix issues with global typings cache and what gets watches (#59869) 2024-09-05 13:06:30 -07:00
Armando Aguirre
6260f7ab78
Added typeToTypeNode with truncation (#59332)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-30 14:16:18 -07:00
Daniel Rosenwasser
e6f3bafddf
Optimize path mapping lookups (#59048) 2024-08-29 09:17:24 -07:00
Andrew Branch
a5eec2485f
Simplify handling of node:-prefixed modules in auto-imports (#59702) 2024-08-21 16:43:21 -07:00
Zzzen
533ed3d665
error on variables that are used but never initialized (#55887)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-08-20 13:02:54 -07:00
YeonJuan
936a79bbb5
Expose TypeChecker. getAwaitedType to public (#59268)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-08-19 10:58:15 -07:00
Andrew Branch
bcb1545aa3
Allow existing imports in file to supersede package.json filter (#59604) 2024-08-15 15:00:31 -07:00
Oleksandr T.
7049af5f4f
fix(58166): Class parameter property with initializer before required property emits non-nullable parameter for declaration emit (#58177) 2024-08-12 15:42:09 -07:00
Andrew Branch
09caaf60aa
Add autoImportSpecifierExcludeRegexes preference (#59543) 2024-08-09 11:12:18 -07:00
Armando Aguirre
5f79e16d33
Refactored node builder flags and tests (#59440)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-08 13:19:24 -07:00
Jake Bailey
99878128f0
Don't treat an instantiation expression as an assertion in skipOuterExpressions (#59538) 2024-08-06 15:01:46 -07:00
Mateusz Burzyński
451388cfd5
Fixed quick fixes for inferred type predicates (#58958) 2024-07-26 10:21:18 -07:00
Ryan Cavanaugh
71fb864138
Disallow truthiness/nullishness checks on syntax that never varies on it (#59217) 2024-07-22 15:26:17 -07:00
Isabel Duan
dfb870150c
fix35982: allow BigIntLiteral to parse as PropertyName for literal object and indices (#58608) 2024-07-19 17:48:08 -07:00
Jake Bailey
85d6bb6fe6
Add new option "noUncheckedSideEffectImports" (#58941) 2024-07-19 17:35:02 -07:00
Ron Buckton
6f530cc4ce
Add TReturn/TNext to Iterable et al (#58243) 2024-07-19 13:14:00 -04:00
Sheetal Nandi
afa03f0948
Allow declarationMap to be emitted when transpiling declarations and option is enabled (#59337) 2024-07-17 17:07:17 -07:00
Andrew Branch
a9139bfdfe
Only look up package.json type if module is node16/nodenext or file is in node_modules (#58825)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00