Commit Graph
16904 Commits
Author SHA1 Message Date
Maria José SolanoandGitHub 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 TandGitHub 437fd059be fix(53257): Illegal .d.ts class property definition for "constructor" generated from JavaScript (#53266) 2023-03-27 11:32:10 -07:00
形素叢集・ぐらふぃーむandGitHub 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 BaileyandGitHub 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 BaileyandGitHub 9bd1a3225b Revert PR #53255 (#53464) 2023-03-23 12:52:05 -07:00
Sheetal NandiandGitHub 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ńskiandGitHub 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 BrittoandGitHub 89478254c8 Defer type comparability check for assertions (#53261) 2023-03-23 11:46:42 -07:00
Gabriela Araujo BrittoandGitHub d5fd34b037 Don't error when calling resolveEntityName (#53441) 2023-03-23 10:49:53 -07:00
Anders HejlsbergandGitHub 511921e1e2 Improve detection of cases where subtype reduction is unnecessary (#53435) 2023-03-23 07:09:12 -07:00
Anders HejlsbergandGitHub 37bafa539c Exclude comparable relation from literal type relation optimization (#53419) 2023-03-23 07:04:16 -07:00
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 BranchandGitHub 7009c76d00 Support wildcard exports in tsconfig lookup (#53443) 2023-03-22 15:21:50 -07:00
Daniel RosenwasserandGitHub f6f6cb893f Include type parameters in tagged template literals in isPartOfTypeNode (#53428) 2023-03-22 14:04:34 -07:00
David SherretandGitHub 1761a67ff8 perf: ensure compiler options affecting semantic diagnostics get included in build info (#53423) 2023-03-22 09:54:17 -07:00
Jake BaileyandGitHub 2c952fe850 Remove redundant throws of Debug.assertNever (#53405) 2023-03-21 16:04:06 -07:00
Mateusz BurzyńskiandGitHub 3f90887a6e Optimize the transformed output of JSXSpreadAttributes containing an ObjectLiteralExpression (#49100) 2023-03-21 15:47:35 -07:00
Jake BaileyandGitHub 01de7885a4 Avoid calculating union in spread if property types are identical (#53413) 2023-03-21 14:44:47 -07:00
SHIMA RYUHEIandGitHub 84a09c762b Accurate constraintType for indexedAccessType (#53059) 2023-03-21 12:54:05 -07:00
Anders HejlsbergandGitHub 3d2c3442db Fix recursive type inference (#53396) 2023-03-21 12:53:16 -07:00
Anders HejlsbergandGitHub bace6897e2 Fix subtype reduction involving type variables with union constraints (#53351) 2023-03-21 12:52:05 -07:00
Mateusz BurzyńskiandGitHub abb4052f2f Always substitute indexed generic mapped type when getting constraint from indexed access (#53066) 2023-03-21 12:50:11 -07:00
Sheetal NandiandGitHub 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
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ńskiandGitHub f078ab0548 Avoid rewriting homomorphic mapped types with homomorphic instantiations (#53215) 2023-03-20 17:09:42 -07:00
Jake BaileyandGitHub e9836a4bec Ensure rest type for source parameter is readonly in relations (#53258) 2023-03-20 16:18:52 -07:00
Andrew BranchandGitHub f43a4fe401 Fix resolving entity name of namespace member after alias is merged with type (#53387) 2023-03-20 15:16:08 -07:00
Mateusz BurzyńskiandGitHub acfb0b53d1 Make function properties context-sensitive based on their return statements (#50903) 2023-03-20 13:53:16 -07:00
4fcb8b8be6 Consider all union types matching discriminator for excess property checks (#51884)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-03-20 13:50:23 -07:00
Jake BaileyandGitHub 3ba3ace236 Remove incorrect handling of intersections in getStringMappingType (#53383) 2023-03-20 13:44:25 -07:00
Sheetal NandiandGitHub 8814f6da48 Report error if commanline only option is specified in tsconfig (#53397) 2023-03-20 13:26:04 -07:00
Jake BaileyandGitHub 79a414bb5e Consistently use '...args' for diagnostic args (#53193) 2023-03-20 12:53:09 -07:00
Wesley WighamandGitHub 001aa99734 Fix crash when importsNotUsedAsValues is set alongside verbatimModuleSyntax (#53386) 2023-03-20 12:30:11 -07:00
Andrew BranchandGitHub af00915d71 Add missing ambient check to verbatimModuleSyntax export = error (#53385) 2023-03-20 12:05:20 -07:00
Sheetal NandiandGitHub 7a8238d88d Refactor config file parsing such that json and jsonSourceFile api use same paths (#53331) 2023-03-20 12:00:08 -07:00
Mateusz BurzyńskiandGitHub 3fab5fff34 Fixed issues with inference from nested tuple types of the same shape (#49226) 2023-03-20 11:18:08 -07:00
Oleksandr TandGitHub 9e1f0adf61 feat(25758): Computed properties no throws if there is a duplicate (#49848) 2023-03-20 11:16:00 -07:00
Mateusz BurzyńskiandGitHub 1ed06e6b05 Fixed an issue with not being able to use mapped type over union constraint as rest param (#49947) 2023-03-20 11:14:25 -07:00
Mateusz BurzyńskiandGitHub 56aa3d522b Normalize generic tuple types with Simplifiable elements (#52385) 2023-03-20 11:10:31 -07:00
Mateusz BurzyńskiandGitHub a5e6dee6b2 Do not infer to mapped types from implied index signatures created by rest bindings (#52632) 2023-03-20 11:06:26 -07:00
Jake BaileyandGitHub 913f65c28d Remove most "import * as ts" imports, except for const enum reverse mapping and plugins (#53329) 2023-03-20 10:50:40 -07:00
Jake BaileyandGitHub 86f8114404 Revert PR #53301 (#53366) 2023-03-19 21:29:17 -07:00
Mateusz BurzyńskiandGitHub d458e30a06 Rewrite getPropFromRaw slightly to surface T in the parameters (#53301) 2023-03-19 20:01:16 -07:00
Jake BaileyandGitHub 716b592e55 Revert fix for intersections in template literals, fix differently (#52836) 2023-03-19 19:48:32 -07:00
Anders HejlsbergandGitHub b70784ef8f Improve detection of type variables in instantiated object types (#53246) 2023-03-19 08:13:57 -07:00
Anders HejlsbergandGitHub 9b7f291a33 Improve contextual typing of ending tuple elements (#53036) 2023-03-19 08:13:03 -07:00
guandGitHub bf369f1b95 Fix missing reference in js (#50509) (#53000) 2023-03-17 15:51:11 -07:00
Jake BaileyandGitHub b7b0b52d68 Disallow instantiation expressions on the right side of instanceof (#53323) 2023-03-17 15:32:00 -07:00
f473058361 Allow implicit return with explicit undefined return type (#53092)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-17 12:08:01 -07:00
Anders HejlsbergandGitHub a70c4095db Fast path for negative case when relating to unions of primtives (#53192) 2023-03-17 08:10:48 -07:00