Commit Graph
17154 Commits
Author SHA1 Message Date
Sheetal Nandi 3ade5022d7 Fix file matching with tsx and dts of same name are included by include patterns (#55690) 2023-09-12 13:10:34 -07:00
Sheetal Nandi 3bc41784f0 Fix issue with wildcard with supported extensions when plugins add external files and override getScriptKind to add script kinds for the additional extensions (#55716) 2023-09-12 11:52:49 -07:00
Mateusz Burzyński 4b0f54fe9f Fixed cache key computation for tuple target types with partially named members (#55695) 2023-09-11 14:41:08 -07:00
Anders Hejlsberg 4f899a1691 Track recursive homomorphic mapped types by the symbol of their target (#55638) 2023-09-11 14:03:00 -07:00
Sheetal Nandi dd18dc1dac If outDir is not specified, dont need to include json files explicitly in the config since they will not be emitted (#55389) 2023-09-08 12:23:13 -07:00
Gabriela Araujo Britto b5d6aa73d1 Add option to exclude library symbols from navTo results (#55605) 2023-09-07 11:19:56 -07:00
Jake Bailey 41a914f00d Don't debug assert on broken link in moduleNameResolver (#55649) 2023-09-06 12:00:18 -07:00
Zzzen c68d1dd942 error on duplicate symbols in classes (#55438) 2023-09-01 16:25:22 -07:00
Jake Bailey 0f91f7dff6 Run dprint on json (#55602) 2023-09-01 15:26:01 -07:00
Mateusz Burzyński f424a6be05 Discriminate types with divergent read/write property types (#55576) 2023-08-30 14:55:11 -07:00
Zzzen c5f92d4150 support generic variant setter (#55030) 2023-08-29 14:11:33 -07:00
Mateusz Burzyński 9f9a72a2eb Disallow object prototype property access on const enums (#55424) 2023-08-28 19:29:52 -07:00
Mateusz Burzyński 418494e4c4 Infer from parameters annotated using JSDoc (#55400) 2023-08-28 16:02:52 -07:00
Mateusz Burzyński 32ebbe05dc Transfer all declared symbols onto the type from the interface that extends another (#55252) 2023-08-28 15:17:44 -07:00
Mateusz Burzyński 9a6a4ab1d5 Fixed a string completions regression when requested directly in argument position (#55552) 2023-08-28 15:04:06 -07:00
Mateusz Burzyński fe70ec984e Parse reserved identifiers as dotted names of ambient modules (#55282) 2023-08-28 14:48:20 -07:00
Jake Bailey b5b6048bb3 Clean up helpers which are always present in ES2020 (#55515) 2023-08-28 12:26:22 -07:00
Wesley Wigham 5ce34cafad Avoid trying to emit anonymous classish/expando functions as assignments (#55472) 2023-08-28 12:15:53 -07:00
Oleksandr T 9d0dc77712 fix(55494): Invalid declaration with computed property using imported symbol (#55529) 2023-08-28 11:40:03 -07:00
Zzzen 788239ff87 do not report use-before-declaration error in async like IIFE initial… (#55279) 2023-08-28 10:47:32 -07:00
Jake Bailey 4d7753ae3e Ensure parsing context is restored in jsdoc parser (#55537) 2023-08-28 09:52:54 -07:00
Anders HejlsbergandMateusz Burzyński 753c463821 Only infer readonly tuples for const type parameters when constraints permit (#55229)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-08-26 08:20:55 -07:00
Sampo Kivistö ec2bd4e252 perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Mateusz Burzyński e0a324b050 Don't parse DotDotDotToken in JSX attribute values (#55284) 2023-08-24 10:17:33 -07:00
Jake Bailey 91c0d7ff9b Avoid resolving objects in getTypeFacts when caller doesn't need that info (#55459) 2023-08-24 10:12:28 -07:00
Shinichi Katayama 98d7e0b936 Fix double error on invalid delete of readonly property (#55449) 2023-08-24 09:57:22 -07:00
Mateusz Burzyński fecbae5d2e Fixed a regression in serializing setters with non-function declarations in JS files (#55492) 2023-08-24 09:45:58 -07:00
Mateusz Burzyński f07077c7ff Fixed a redundant used before defined error (#55283) 2023-08-24 08:35:48 -07:00
Jake Bailey eb33c8e56a Fix typo in getScriptTargetFeatures map (#55488) 2023-08-23 22:51:11 -07:00
Sampo KivistöandJake Bailey 768f59296d perf: reduce GC pressure by hoisting script target features object (#55484)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-23 16:06:20 -07:00
Anders Hejlsberg fcaa900012 Fix check in getDiscriminantPropertyAccess (#55464) 2023-08-23 11:43:41 -07:00
6d07d5fa40 Improve inference between types with multiple signatures (#54448)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2023-08-23 11:14:25 -07:00
Mateusz Burzyński 97d8c83bce Fixed serialization of param names in setters from JS files (#55393) 2023-08-22 09:54:09 -07:00
Mateusz Burzyński e99508b863 Make contextually-typed parameter with question token optional (#54960) 2023-08-21 15:01:07 -07:00
Zzzen a0e0104656 error on duplicate symbols in object literals (#55193) 2023-08-17 16:34:31 -07:00
Benny Neugebauer 3afb1e55f1 Consistently use ECMAScript and CommonJS wording (#55416) 2023-08-17 10:14:45 -07:00
Nils 3790c921dd Fix typo isInvalid -> isValid (#55414) 2023-08-17 10:07:13 -07:00
Mateusz Burzyński 3b49ce99e2 Fixed contravariant inferences from annotated optional parameters (#55397) 2023-08-16 14:49:11 -07:00
Jake Bailey 5e8c261b6a dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Wesley Wigham ffec968d79 Don't track private symbol roots in other files during js declaration emit (#55390) 2023-08-16 14:13:45 -07:00
Mateusz Burzyński cac899d44d Widen widening literal types through compound-like assignments (#52493) 2023-08-15 16:53:11 -07:00
Mateusz Burzyński b8b0d26cb9 Display write type for property accesses in write locations (#54777) 2023-08-15 12:01:21 -07:00
Mateusz Burzyński 8863e2f57a Discriminate contextual types using shorthand properties (#55151) 2023-08-15 08:58:59 -07:00
Jake Bailey defb504be6 Remove allowComplexConstraintInference in inferTypes (#54815) 2023-08-15 08:54:21 -07:00
Jake Bailey f37d2ad669 Prevent detached diagnostics from running off the end of the file (#55381) 2023-08-15 08:29:36 -07:00
Sheetal Nandi 9261ca7a13 Share redirects cache key calculation between multiple caches used for module resolution and type reference directive (#55376) 2023-08-14 18:46:55 -07:00
Mateusz Burzyński 16dab6d5d6 Preserve input key style of computed properties in declaration emit (#55298) 2023-08-14 13:13:42 -07:00
Mateusz BurzyńskiandDamien Engels 38553696e2 Fixed hasInvalidEscape implementation (#55373)
Co-authored-by: Damien Engels <engels@google.com>
2023-08-14 13:13:32 -07:00
Jake Bailey 3b43d841d1 Enable eslint rules prefer-rest-params and prefer-spread (#55181) 2023-08-11 15:07:06 -07:00
Mateusz Burzyński 28cd1fbd13 Allow intersections to be used as valid types for template literal placeholders (#54188) 2023-08-10 12:50:21 -07:00