Commit Graph

4135 Commits

Author SHA1 Message Date
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
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
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
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
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
Mateusz Burzyński
e7753831e9 Filter out non-array types when contextually typing array literal elements (#52589) 2023-03-10 09:34:03 -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
Mateusz Burzyński
615a97b1d4 Add an extra test for excess property check for intersection containing a recursive type (#53100) 2023-03-08 12:34:47 -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
jihndai
4af97b0572 Fix compound assignments for properties with different getter & setter types (#50431) 2023-03-07 16:02:16 -08:00
Mateusz Burzyński
2f229ab870 Add an extra test for contextually typed return of async function (#52613) 2023-03-07 15:30:40 -08:00
Jake Bailey
868331f2be Fix deprecations, improve messaging (#52993) 2023-03-07 09:39:45 -08:00
Mateusz Burzyński
6dbec02a88 Add extra test cases for the Awaited type (#53090) 2023-03-06 23:14:57 -08:00
Mateusz Burzyński
7e4592ea09 Add an extra test case for deferred conditional types (#53067) 2023-03-06 13:46:11 -08:00
Mateusz Burzyński
61a8e2c5b7 Add a test for an error on required JSX children when an empty JSX expression is used (#53113) 2023-03-06 13:24:15 -08:00
Mateusz Burzyński
9c7f43dfd8 Add extra test cases for indexed access on generic mapped type (#53112) 2023-03-06 10:20:00 -08:00
Anders Hejlsberg
6823559fa9 Check for strict subtypes and then regular subtypes in getNarrowedType (#52984) 2023-03-03 15:56:17 -08:00
Mateusz Burzyński
a34d5ae1ed Add extra test cases for Awaited<T> inference (#53068) 2023-03-03 09:47:14 -05:00
Mateusz Burzyński
6b71882c4c Fixed spreading iterables into arguments list directly into rest-only signatures (#52838) 2023-03-02 09:09:54 -08:00
Wesley Wigham
958487beda Mark indexed access object type comparisons as unreliable (#52106) 2023-03-01 13:07:44 -08:00
Mateusz Burzyński
fc756ebc17 Use missingType instead of undefinedType for optional methods under exactOptionalPropertyTypes (#52519) 2023-03-01 11:25:39 -08:00
Mateusz Burzyński
080f9c1c3f Fixed false positive errors in empty optional binding patterns in declaration signatures (#50816) 2023-03-01 10:58:37 -08:00
Sheetal Nandi
9c5b09cd21 Updates to type reference directive resolution and module resolution when failed (#51715) 2023-03-01 10:57:47 -08:00
Mateusz Burzyński
58ee54c2aa Resolve contextual computed properties with non-bindable names (#51915) 2023-03-01 10:12:18 -08:00
Ron Buckton
73a98aee00 Add tests for Awaited<null> and Awaited<undefined> (#52960) 2023-03-01 12:56:42 -05:00
Mateusz Burzyński
02885b1a2e Fixed an issue with top function type being callable with no arguments (#52387) 2023-03-01 09:35:36 -08:00
Mateusz Burzyński
c6b384ce5c Add an extra test case for an aliased mapped type inference (#52742) 2023-02-28 16:07:47 -08:00
形素叢集・ぐらふぃーむ
57394450db lib Fix Part 1/6 – WeakMap constructor (#50449)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-02-28 14:14:30 -08:00
Ron Buckton
8becdf2b40 Fix emit for nested object rest in assignment pattern (#52922) 2023-02-22 20:41:09 -05:00
Jake Bailey
3471bd7d86 Fix type import node circularity errors in eager diagnostic mode, deprecations (#52861) 2023-02-21 15:42:15 -08:00
Jake Bailey
b579516b9e Handle multiple levels of substitutions and indexed accesses in getActualTypeVariable (#52848) 2023-02-21 11:08:51 -08:00
Anders Hejlsberg
5c92af1dcc Fix contextual typing for post-spread tuple elements (#52769) 2023-02-18 07:35:24 -10:00
Jake Bailey
8cc216af03 Ensure parameters are in scope when converting parameter/return types to type nodes (#49627) 2023-02-17 16:46:03 -08:00
Oleksandr T
088fdf6efe fix(51202): Circular instantiation expression crashing IDEs (#51214) 2023-02-17 11:31:45 -08:00
Mateusz Burzyński
a3b516f6ab Add an extra test case for inferring return type of generic class without a constructor (#52741) 2023-02-16 18:56:42 -08:00
Jake Bailey
d79eb02de3 Prefer using enum literal's own base type rather than enum's base type in comparison (#52703) 2023-02-16 07:44:06 -08:00
Anders Hejlsberg
7d00bb078d Widening and non-widening computed enum types (#52542) 2023-02-14 16:25:46 -08:00
Anders Hejlsberg
84b8483206 Improvements to strictSubtypeRelation and getNarrowedType (#52282) 2023-02-14 12:12:42 -08:00
Oleksandr T
a8b4a3b637 fix(52061): Constructor parameters exported as type included in emitted metadata (#52138) 2023-02-14 12:03:54 -08:00
Ron Buckton
f23dd7a7b2 Fix crash in getAwaitedType (#52752) 2023-02-14 11:16:12 -05:00
Anders Hejlsberg
72fb827045 Check conditional types in depth in isTypeParameterAtTopLevel (#52648) 2023-02-14 07:33:22 -08:00
Jake Bailey
79df2bcd35 Don't allow everything to be assignable to string within string mappings like Uppercase/Lowercase (#52734) 2023-02-13 17:58:56 -05:00
Mateusz Burzyński
738b45e219 Fixed crash in checkExportsOnMergedDeclarationsWorker (#52740) 2023-02-13 11:24:15 -08:00
Anders Hejlsberg
c838b0cb7e Consult cached contextual types only when no contextFlags (#52611) 2023-02-10 11:17:59 -08:00
Jake Bailey
0ef9e8eac9 Ensure we treat "type assertions" as JSX within a unary expression (#52667) 2023-02-09 11:34:47 -08:00