Commit Graph
16928 Commits
Author SHA1 Message Date
Ron Buckton 3e76fb5ca2 Fix CJS local binding emit for ES decorators (#53725) 2023-04-10 17:05:38 -04:00
Tobias S 8369d41efe fix ordering of code fix import with triple-slash directives (#52484) 2023-04-10 10:45:57 -07:00
Ryan Cavanaugh c89f87f66a Detect malformed UTF-8 files and refuse to engage further (#53667) 2023-04-07 12:51:47 -07:00
Jake Bailey 7f6376794e Reuse operandType in checkPrefixUnaryExpression (#53682) 2023-04-06 13:37:12 -07:00
Andrew Branch 287ee41cf2 Fix two module specifier ending preference detection issues (#53691) 2023-04-06 13:06:58 -07:00
Andrew Branch f4be5b1321 Remove error on redundant isolatedModules/verbatimModuleSyntax combination (#53611) 2023-04-05 15:08:28 -07:00
Sheetal Nandi d07b1b93ab Fix incorrect setting of nonRecursive watch field (#53675) 2023-04-05 14:17:52 -07:00
Jake Bailey f243b987af Fix crash in parseJsxChild found by fuzzing (#53674) 2023-04-05 13:47:02 -07:00
Jake Bailey bebb6d0086 Disable JSX recovery hack when in unary expression context (#53666) 2023-04-05 13:04:37 -07:00
Jake Bailey a720ba921f Fix crash when private id in array assignment (#53665) 2023-04-05 13:04:13 -07:00
Gabriela Araujo Britto e83d61398e Provide snippet completions for @param in JSDoc (#53260) 2023-04-04 11:35:09 -07:00
Anders Hejlsberg 3f675b60bf More complete check in isConstTypeVariable (#53341) 2023-04-01 14:45:31 -07:00
Anders Hejlsberg b40385b595 Explicit undefined return type checked similar to explicit void return type (#53607) 2023-04-01 14:44:52 -07:00
Andrew Branch 9052ef895a Fix Go To Source Definition in --moduleResolution bundler (#53613) 2023-03-31 15:50:11 -07:00
Sheetal Nandi 2eab265a2b Baseline some watch related path determinations so its easy to track changes (#53598) 2023-03-31 15:13:06 -07:00
David Sherret 710e7d914d Remove non-ascii characters from internal code comments (#53608) 2023-03-31 10:57:57 -07:00
Andrew Branch b29ed18466 Ignore allowImportingTsExtensions in transpileModule to suppress option validation error with noEmit (#53599) 2023-03-31 09:10:49 -07:00
Sheetal Nandi 0ee51b96dc More baselining for timeouts that make furture changes easier (#53579) 2023-03-30 09:48:34 -07:00
Andrew Branch 5586727193 Allow getter and setter types to be unrelated (#53417) 2023-03-30 08:51:01 -07:00
Oleksandr T b6fed21a87 fix(53347): Incorrect generated JS code when private (hashtag) property is used with parenthesis in left assignment (#53434) 2023-03-28 13:24:36 -04:00
2b57a88b72 Use related spans for "implement abstract class" errors (#48030)
Co-authored-by: Gabriela Araujo Britto <gabrielaa@microsoft.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-03-28 07:54:36 -07:00
Ron Buckton 85ef01d31a Fix double-emit in constructor (#53547) 2023-03-27 18:16:49 -04:00
Jake Bailey 3efcfcb70c Cache getConstraintOfDistributiveConditionalType (#53358) 2023-03-27 14:12:06 -07:00
Zzzen 8e08f38a08 fix(53006): generate let in namespaces for expando (#53206) 2023-03-27 13:26:14 -07:00
Maria José Solano c5b288487a Don't error when function has an implicit return but its return type is assignable to undefined (#53490) 2023-03-27 13:21:07 -07:00
Oleksandr T 437fd059be fix(53257): Illegal .d.ts class property definition for "constructor" generated from JavaScript (#53266) 2023-03-27 11:32:10 -07:00
形素叢集・ぐらふぃーむ c2dc2fd9b9 fix(396): (Dis)allow Octal and Bad Escape Sequences in String and (Tagged) Template Literals (#51837) 2023-03-24 16:15:50 -07:00
Jake Bailey ac55b297b7 Upgrade "boolean-trivia" lint to new "argument-trivia" lint that uses type info, has quick fixes, etc. (#53002) 2023-03-23 16:26:39 -07:00
Jake Bailey 9bd1a3225b Revert PR #53255 (#53464) 2023-03-23 12:52:05 -07:00
Sheetal Nandi c66f8de7c8 Fix incorrect assert about configFileName when watch is created with explicit options, projectReferences etc (#53468) 2023-03-23 12:40:09 -07:00
Mateusz Burzyński 218180ded2 Fixed an issue with an incorrect resolved signature being cached/returned sometimes for signatures depending on the contextual type/outer inference (#52146) 2023-03-23 12:15:33 -07:00
Gabriela Araujo Britto 89478254c8 Defer type comparability check for assertions (#53261) 2023-03-23 11:46:42 -07:00
Gabriela Araujo Britto d5fd34b037 Don't error when calling resolveEntityName (#53441) 2023-03-23 10:49:53 -07:00
Anders Hejlsberg 511921e1e2 Improve detection of cases where subtype reduction is unnecessary (#53435) 2023-03-23 07:09:12 -07:00
Anders Hejlsberg 37bafa539c Exclude comparable relation from literal type relation optimization (#53419) 2023-03-23 07:04:16 -07:00
Anders HejlsbergandDaniel Rosenwasser 25550bd3d6 Exclude special index signature rule from strict subtype relation (#53388)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-23 07:03:09 -07:00
Andrew Branch 7009c76d00 Support wildcard exports in tsconfig lookup (#53443) 2023-03-22 15:21:50 -07:00
Daniel Rosenwasser f6f6cb893f Include type parameters in tagged template literals in isPartOfTypeNode (#53428) 2023-03-22 14:04:34 -07:00
David Sherret 1761a67ff8 perf: ensure compiler options affecting semantic diagnostics get included in build info (#53423) 2023-03-22 09:54:17 -07:00
Jake Bailey 2c952fe850 Remove redundant throws of Debug.assertNever (#53405) 2023-03-21 16:04:06 -07:00
Mateusz Burzyński 3f90887a6e Optimize the transformed output of JSXSpreadAttributes containing an ObjectLiteralExpression (#49100) 2023-03-21 15:47:35 -07:00
Jake Bailey 01de7885a4 Avoid calculating union in spread if property types are identical (#53413) 2023-03-21 14:44:47 -07:00
SHIMA RYUHEI 84a09c762b Accurate constraintType for indexedAccessType (#53059) 2023-03-21 12:54:05 -07:00
Anders Hejlsberg 3d2c3442db Fix recursive type inference (#53396) 2023-03-21 12:53:16 -07:00
Anders Hejlsberg bace6897e2 Fix subtype reduction involving type variables with union constraints (#53351) 2023-03-21 12:52:05 -07:00
Mateusz Burzyński abb4052f2f Always substitute indexed generic mapped type when getting constraint from indexed access (#53066) 2023-03-21 12:50:11 -07:00
Sheetal Nandi 377c4ce32f Refactor config file syntax search to callback model instead of constructing arrays to iterate over (#53416) 2023-03-21 11:23:36 -07:00
Kevin GibbonsandJake Bailey de31ebecea More explicit error message for function signature length mismatches (#51457)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-03-21 09:09:22 -07:00
Mateusz Burzyński f078ab0548 Avoid rewriting homomorphic mapped types with homomorphic instantiations (#53215) 2023-03-20 17:09:42 -07:00
Jake Bailey e9836a4bec Ensure rest type for source parameter is readonly in relations (#53258) 2023-03-20 16:18:52 -07:00