Commit Graph

4581 Commits

Author SHA1 Message Date
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
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
Isabel Duan
3d2b8f33d4 Remove reference not found errors from jsx: preserve (#60687) 2024-12-09 10:38:37 -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
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
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
Titian Cernicova-Dragomir
b58ac4abf2 Extract function types from function and arrow expressions. (#60234) 2024-11-11 10:15:29 -08:00
Ryan Cavanaugh
55f1248a20 MetaProperty is possibly nullish (#60440) 2024-11-06 13:06:12 -08: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
Dirk Luijk
60dd512a83 fix(60223): add Promise.try() to ESNext lib (#60232) 2024-11-05 17:14:02 -08:00
Mateusz Burzyński
c09e2ab4ff Fixed syntactic nullisness semantics for comma expressions (#60402) 2024-11-04 12:43:30 -08:00
Ron Buckton
11b2930fa2 Add compatible overloads that accept ArrayBuffer to BigInt64Array/BigUint64Array (#60391) 2024-11-01 16:47:09 -04:00
Oleksandr T.
db8eacd7e2 fix(59397): JsDoc is missing/duplicated in declarations for overloads declared in classes declared in functions (#59675) 2024-10-23 11:34:23 -07:00
Oleksandr T.
241a6c9589 fix(55168): Computed properties do not respect setter signatures (#55178) 2024-10-22 13:10:55 -07:00
Ron Buckton
e25abe34ae Error on too many parameters for iterator method (#60321) 2024-10-22 16:00:58 -04:00
Mateusz Burzyński
c07da583af Disallow type and interface declarations in statements with blockless bodies (#60183) 2024-10-18 09:24:33 -07:00
Mateusz Burzyński
03c5a37cfb Allow auto accessor types to be inferred from their flow types in constructors and static blocks (#59732)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-10-15 20:52:12 -04:00
Andrew Branch
31de163db7 Do not mark #imports and self-name imports as external library imports in module resolution (#60228) 2024-10-15 10:53:32 -07:00
Ron Buckton
40caf34319 Fix decorator emit crash (#60224) 2024-10-14 17:45:23 -04:00
Mateusz Burzyński
c003609d59 Assume that type node annotations resolving to error types can be reused (#60195)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-10-11 16:13:39 -07:00