Commit Graph

26317 Commits

Author SHA1 Message Date
Jake Bailey 913f65c28d Remove most "import * as ts" imports, except for const enum reverse mapping and plugins (#53329) 2023-03-20 10:50:40 -07:00
Daniel Hritzkiv 41474f908c Change ParamaterDecorator to allow an undefined propertyKey (#53365) 2023-03-20 13:47:51 -04:00
Jake Bailey 86f8114404 Revert PR #53301 (#53366) 2023-03-19 21:29:17 -07:00
Mateusz Burzyński d458e30a06 Rewrite getPropFromRaw slightly to surface T in the parameters (#53301) 2023-03-19 20:01:16 -07:00
Jake Bailey 716b592e55 Revert fix for intersections in template literals, fix differently (#52836) 2023-03-19 19:48:32 -07:00
Anders Hejlsberg b70784ef8f Improve detection of type variables in instantiated object types (#53246) 2023-03-19 08:13:57 -07:00
Anders Hejlsberg 9b7f291a33 Improve contextual typing of ending tuple elements (#53036) 2023-03-19 08:13:03 -07:00
Sheetal Nandi 905a0b4e69 Create baselines for tsserver event tests (#53330) 2023-03-17 16:56:01 -07:00
gu bf369f1b95 Fix missing reference in js (#50509) (#53000) 2023-03-17 15:51:11 -07:00
Jake Bailey b7b0b52d68 Disallow instantiation expressions on the right side of instanceof (#53323) 2023-03-17 15:32:00 -07:00
Sheetal Nandi b1ef5b79f7 Convert config file parsing tests to baseline for easier future update verification and adds missing location verification (#53324) 2023-03-17 12:58:55 -07:00
Kagami Sascha Rosylight 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 Hejlsberg a70c4095db Fast path for negative case when relating to unions of primtives (#53192) 2023-03-17 08:10:48 -07:00
Jake Bailey c797bd2f5f Skip asking for jsdoc in checkObjectLiteral for enums in TS (#53117) 2023-03-16 13:14:54 -07:00
Mateusz Burzyński a6ba2e735d Collect contravariant-only inference candidates from shorter annotated functions (#52609) 2023-03-16 11:00:36 -07:00
Jake Bailey 377fe1f34f Fix esDecorators evaluation test on Node 16+ (#53175) 2023-03-16 10:32:28 -07:00
Zzzen cfd550e397 Avoid bogus circularity error on context sensitive expando assingment (#50487)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-03-16 10:12:23 -07:00
Jake Bailey e0124040f0 Revert PR #52589 (#53280) 2023-03-16 09:59:02 -07:00
Jake Bailey 7f292bf2a1 Revert PR #51580 (#53283) 2023-03-15 20:19:23 -07:00
Jake Bailey a727ca1571 Make perfLogger potentially undefined rather than using a noop logger (#53229) 2023-03-15 15:58:26 -07:00
Mateusz Burzyński 63495beb1a Fixed an issue with spreading a spreadable generic expression into generic JSX (#51580) 2023-03-15 14:57:37 -07:00
Oleksandr T 7a65c341ce fix(53204): Bug: __runInitializers(this) is emitted before super() call (#53268) 2023-03-15 12:59:19 -07:00
Jake Bailey dfa30bbe2a Ensure moduleType is structured during cloneTypeAsModuleType (#51136) 2023-03-15 12:56:11 -07:00
Mateusz Burzyński 074bf34633 Do not resolve apparent type of mapped types with a tuple constraint (#52651) 2023-03-15 10:46:12 -07:00
Mateusz Burzyński eb6aaea86e Fixed symbol declarations for generic filtering mapped types (#53207) 2023-03-15 10:43:45 -07:00
Mateusz Burzyński 78089b4964 Add intra expression inference sites based on JSX attributes (#52837) 2023-03-15 10:42:40 -07:00
Wesley Wigham 2b9d792828 Fix #33569 - Enable declaration emit for late-bound function members (#53034) 2023-03-15 10:20:35 -07:00
Anders Hejlsberg 9769421a63 Defer resolution of indexed access types with reducible object types (#53098) 2023-03-14 14:15:32 -07:00
Ron Buckton ae1b3db8ce Allow 'verbatimModuleSyntax' with transpileModule (#53240)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-14 13:03:43 -07:00
Oleksandr T 2378c0b65e fix(53242): Wrong error message when defined abstract property in non-abstract class (#53251) 2023-03-14 11:10:40 -07:00
Sheetal Nandi 46d70d79cd When resolving type reference from custom typeRoot localtion use mangled scope name if the package is scoped name (#53166) 2023-03-10 09:58:41 -08:00
Jake Bailey 42d23390e2 Remove declares in sys, core, evaluatorImpl (#53176) 2023-03-10 09:57:32 -08:00
Mateusz Burzyński e7753831e9 Filter out non-array types when contextually typing array literal elements (#52589) 2023-03-10 09:34:03 -08:00
Jake Bailey ddcbd9ffbd Remove old references to Node v4, small cleanup of node version stuff (#53174) 2023-03-09 14:32:15 -08:00
Nathan Shively-Sanders bb566f9977 DOM update 2023-03-07 (#53133) 2023-03-09 11:00:11 -08:00
Oleksandr T 0e3e14d39e fix(52992): no add missing properties quick for nested object literal (#53004) 2023-03-09 10:00:55 -08:00
Oleksandr T 2ab9e7edd9 fix(53011): Illegal declaration file can be emitted (duplicate parameter names) when spreading tuples into parameter positions (#53028) 2023-03-09 09:47:49 -08:00
Mateusz Burzyński d681520a14 Fixed array expression spreads into variadic const calls (#52845) 2023-03-08 14:45:58 -08:00
navya9singh 74a37f8203 Fix(49702): LS crash in binder for module in a JS file (#52537) 2023-03-08 09:42:18 -08:00
Zzzen 0ce551752d check computed property names in overloads (#52427) 2023-03-08 09:20:33 -08:00
Mateusz Burzyński 6e4f0a430e Fix string completions depending on contextual signatures (#52717) 2023-03-07 16:42:16 -08:00
Mateusz Burzyński f555ad73db Fix property completion in unions of object types and string mappings (#52767) 2023-03-07 16:36:37 -08:00
Nathan Shively-Sanders 137c461bd0 Scan bigger/fewer jsdoc tokens (#53081) 2023-03-07 16:32:04 -08:00
jihndai 4af97b0572 Fix compound assignments for properties with different getter & setter types (#50431) 2023-03-07 16:02:16 -08:00
Nathan Shively-Sanders d747277edf Skip derived override assignment declarations (#52603) 2023-03-07 15:40:43 -08:00
Mateusz Burzyński 88adf8014b Make special intersections order-independent (#52782) 2023-03-07 15:39:14 -08:00
Nathan Shively-Sanders ff1e08f859 Rename scanner token methods (#53078) 2023-03-07 13:54:44 -08:00
Jake Bailey 3236ac9336 Add NullKeyword to isPartOfTypeNode, mirroring UndefinedKeyword (#53025) 2023-03-07 12:03:09 -08:00
Jake Bailey a6be79d535 Remove old test262 and dt runner infra (#53125) 2023-03-07 11:59:47 -08:00
Oleksandr T 0e34f187c8 fix(52443): Regression: constructor accessor not allowed on plain objects (#52452) 2023-03-07 11:22:09 -08:00