12941 Commits

Author SHA1 Message Date
TypeScript Bot
f6b94db7d4
🤖 Pick PR #61392 (Fix serialization of accessor types...) into release-5.8 (#61423)
Co-authored-by: Titian Cernicova-Dragomir <tcernicovad1@bloomberg.net>
2025-03-19 14:34:13 -07:00
TypeScript Bot
8fdbd54160
🤖 Pick PR #61210 (Fix mistakenly disallowed default e...) into release-5.8 (#61237)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-02-25 22:46:11 -08:00
TypeScript Bot
f4a3a8ae67
🤖 Pick PR #61175 (Ban import=require and export= unde...) into release-5.8 (#61178)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-02-20 13:15:03 -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
Mateusz Burzyński
239a2a936f
Error on override used on dynamically named class members (#60691) 2024-12-06 11:05:25 -08:00
Mateusz Burzyński
9ef98be517
Add extra test cases for fixed reportNonexistentProperty crashes (#60690) 2024-12-05 09:21:08 -08:00
Wesley Wigham
12d96878bc
Lookup non-local element factory for reference marking when marking fragment references (#60684) 2024-12-04 16:44:24 -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
Ryan Cavanaugh
4105134626
Include type-meaning 'extends' clause in auto-import fix list (#59853) 2024-12-04 13:22:25 -08:00
Wesley Wigham
42f893ff75
Mark the inherited any-based index signature so it can be elided in declaration emit (#60680) 2024-12-04 13:21:16 -08:00
Mateusz Burzyński
676d329948
Avoid incorrectly reusing assertion nodes from property assignments (#60576) 2024-12-04 12:04:14 -08:00
Gabriela Araujo Britto
6b1ea96b94
Fix flow node improper reuse (#60662) 2024-12-04 09:13:13 -08:00
Andrew Branch
9bf5aa7fe2
Do not require import attributes for JSON imports in --module node16 (#60673) 2024-12-04 08:47:16 -08:00
Mateusz Burzyński
14c65b3119
Check if switch statements are exhaustive when their expressions is generic with a literal type constraint (#60644) 2024-12-02 12:12:58 -08:00
Mateusz Burzyński
97177722b8
Allow assignments to readonly class properties within IIFEs contained in constructors (#60416) 2024-12-02 11:15:47 -08:00
Mateusz Burzyński
9fe6c3661c
Fixed syntactic nullisness semantics for tagged template expressions (#60616) 2024-11-26 15:17:29 -08:00
Isabel Duan
96410eb655
fix missing react error with fragments in react-native (#60615) 2024-11-26 13:24:44 -08:00
Oleksandr T.
d85767abfd
fix(60484): Implementing a prim type in a class expression should report error (#60490) 2024-11-19 19:45:22 -08:00
Oleksandr T.
d6b7c41fbc
fix(60505): Convert to namespace import refactoring should drop file extensions on namespace name (#60510) 2024-11-19 19:42:16 -08:00
Andrew Branch
b3c67d3202
Move to file: fix detection of references to globals that shouldn't be moved (#60450)
Co-authored-by: Isabel Duan <isabelduan@microsoft.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2024-11-15 14:21:38 -08:00
Ben Kraft
c043944b14
Let isolated declarations fixer add toplevel imports more (#60267) 2024-11-13 09:04:51 -08:00
Nathan Shively-Sanders
79ea5a5b35
Stub out copilotRelated command (#60488) 2024-11-13 08:33:00 -08:00