Commit Graph
4576 Commits
Author SHA1 Message Date
TypeScript BotandDaniel Rosenwasser 92eedcb6be 🤖 Pick PR #61452 (Fix errors on type assertions in er...) into release-5.8 (#61453)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2025-03-19 16:25:05 -07:00
88a002a1ea 🤖 Pick PR #61261 (Fixed accidentally reused comments ...) into release-5.8 (#61290)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: michaelm <michael.mitchell@airtable.com>
2025-03-19 14:54:01 -07:00
TypeScript BotandTitian Cernicova-Dragomir 021dba5c83 🤖 Pick PR #61342 (Rename type parameters when they ar...) into release-5.8 (#61345)
Co-authored-by: Titian Cernicova-Dragomir <tcernicovad1@bloomberg.net>
2025-03-19 14:53:48 -07:00
TypeScript BotandJake Bailey fca87f2721 🤖 Pick PR #61244 (Ban old-style type assertions under...) into release-5.8 (#61320)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-03-19 14:37:01 -07:00
TypeScript BotandTitian Cernicova-Dragomir 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 BotandJake Bailey 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 BotandJake Bailey 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
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 CavanaughandJake Bailey 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ńskiandRon Buckton 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ńskiandJake Bailey 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
Mateusz Burzyński f53d6dda5d Avoid confusing TS9025 error in isolatedDeclarations (#60129) 2024-10-11 15:42:28 -07: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
Ron Buckton 25ab551a12 Report implict any error when widening null/undefined in presence of … (#59661) 2024-09-26 17:06:57 -04: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