34565 Commits

Author SHA1 Message Date
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
Mateusz Burzyński
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 Bailey
9901cf7daf
Fix package-lock update task (#53336) 2023-03-20 11:02:26 -07:00
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
ba42ad3646
Bump TS devDep to ^5.0.2 (#53299) 2023-03-16 20:46:09 -07:00
Mateusz Burzyński
b8c71685f9
Add an extra test case related to return statements and annotated return types (#52628) 2023-03-16 14:58:03 -07:00
Pedro Nacht
da8dfbf0ff
Set minimal workflow permissions (#53297) 2023-03-16 13:19:40 -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
Jake Bailey
9ccf47fec5
Move smoke test package script into scripts (#53245) 2023-03-14 15:27:07 -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
Jake Bailey
e08a2db86d
Enable corepack in CI (#53152) 2023-03-14 09:59:46 -07:00
Mateusz Burzyński
2953bcdf2e
Add an extra test case for mapped type relationships (#53232) 2023-03-14 09:48:05 -07:00
Jake Bailey
5a4d5e1977
Test and LKG before push in dep bump (#53151) 2023-03-14 09:29:04 -07:00
Jake Bailey
edc343d733
Add custom GHA report for package size (#53241) 2023-03-14 09:23:51 -07:00
Jake Bailey
9dfd5ea221
Bump TS devDep to 5.0 RC to fix eslint (#53243) 2023-03-14 08:30:19 -07:00
TypeScript Bot
bbb8348c25 Update package-lock.json 2023-03-14 06:07:21 +00:00
Jake Bailey
e1488fe915
Don't recommend installing typescript package globally in README (#53209) 2023-03-13 13:07:58 -07:00