Commit Graph

35208 Commits

Author SHA1 Message Date
TypeScript Bot 24373d80ec Update package-lock.json 2023-03-24 06:19:39 +00:00
Sheetal Nandi e47e1266dc Add current directory, useCasesensitive file names to each baseline (#53483) 2023-03-23 21:14:22 -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
Andrew Branch 3a3146e25f Add tests for completions crash (#53472) 2023-03-23 15:59:43 -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
Wesley Wigham 916f9b7344 Handle jsx runtime implicit synthetic import in find all references (#51319) 2023-03-23 12:08:52 -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
Lyu, Wei-Da 5712730c2d fix: non-relative path completion without baseUrl (#52908) 2023-03-23 08:57:57 -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 Hejlsberg 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
Sheetal Nandi 1b745df857 Adding baseline methods for verification of findAllRefs, GoTo*, Occurrences, highlights and rename deprecating the corresponding verification methods from fourslash tests (#52576) 2023-03-22 14:02:18 -07:00
Eric Ferreira a82b9274b5 Fix the type of copyWithin (#53340) 2023-03-22 10:54:49 -07:00
Lyu, Wei-Da 9f18c3fd9c fix: escape module specifier for snippet after quoted (#53407) 2023-03-22 10:19:16 -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
TypeScript Bot 1df5717b12 Update package-lock.json 2023-03-22 06:21:51 +00: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
Oleksandr T 01a7a3e146 fix(53289): TypeScript cannot auto-complete keyword typeof (#53325) 2023-03-21 13:51:08 -07:00
Oleksandr T c5b539dcd5 fix(53372): TypeScript cannot auto-complete keyword extends (#53418) 2023-03-21 13:12:38 -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 Gibbons 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
TypeScript Bot f218a562bf Update package-lock.json 2023-03-21 06:17:12 +00:00
Jake Bailey b168b246b7 Make deeplyNestedTemplateLiteralIntersection run a little faster (#53401) 2023-03-20 17:43:04 -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
Andrew Branch 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ński acfb0b53d1 Make function properties context-sensitive based on their return statements (#50903) 2023-03-20 13:53:16 -07:00
Nebojša Cvetković 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 Bailey 3ba3ace236 Remove incorrect handling of intersections in getStringMappingType (#53383) 2023-03-20 13:44:25 -07:00
Sheetal Nandi 8814f6da48 Report error if commanline only option is specified in tsconfig (#53397) 2023-03-20 13:26:04 -07:00
Jake Bailey 79a414bb5e Consistently use '...args' for diagnostic args (#53193) 2023-03-20 12:53:09 -07:00
Wesley Wigham 001aa99734 Fix crash when importsNotUsedAsValues is set alongside verbatimModuleSyntax (#53386) 2023-03-20 12:30:11 -07:00
Andrew Branch af00915d71 Add missing ambient check to verbatimModuleSyntax export = error (#53385) 2023-03-20 12:05:20 -07:00
Sheetal Nandi 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ński 3fab5fff34 Fixed issues with inference from nested tuple types of the same shape (#49226) 2023-03-20 11:18:08 -07:00
Oleksandr T 9e1f0adf61 feat(25758): Computed properties no throws if there is a duplicate (#49848) 2023-03-20 11:16:00 -07:00
Mateusz Burzyński 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
Jake Bailey 27aca613ff Remove random code from fourslash test (#53335) 2023-03-20 11:13:06 -07:00
Mateusz Burzyński 56aa3d522b Normalize generic tuple types with Simplifiable elements (#52385) 2023-03-20 11:10:31 -07:00