12267 Commits

Author SHA1 Message Date
lyonbot
b35fa04346
Fix broken formatting rules around namespaced JSX attributes (#55294) 2023-08-11 09:51:05 -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
Jack Works
cd391b066b
chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Mateusz Burzyński
2be814d927
Fixed contextual types of optional properties with exactOptionalPropertyTypes (#55177) 2023-08-08 14:42:50 -07:00
Ryan Cavanaugh
9a771d54e8
Skip parent error when reporting excess property checks (#55152) 2023-08-07 13:31:23 -07:00
Mateusz Burzyński
5ea2952ae5
Resolve JSX intrinsic elements to index signature symbols (#55245) 2023-08-07 11:02:23 -07:00
Ron Buckton
8fc8c95830
Decorators normative updates (#55276) 2023-08-04 20:36:52 -04:00
Ron Buckton
b1c4dc475c
Fix class name references (#55262) 2023-08-04 20:36:26 -04:00
navya9singh
ad0127036e
Fix(54284) (#54973) 2023-08-04 10:00:33 -07:00
Oleksandr T
d045f18928
fix(54954): Javascript Intellisense adding "this." to function declaration (#55119) 2023-08-03 15:57:51 -07:00
Andrew Branch
36ac4eb700
Fix reference marking of values merged with unresolvable type-only imports (#54799) 2023-08-03 11:09:50 -07:00
Mateusz Burzyński
3a7a4d4b51
Error on shadowed var declarations without initializers (#55228) 2023-08-03 10:56:08 -07:00
Mateusz Burzyński
1481750043
Correctly error on enum member values referring to identifiers shadowing Infinity and NaN (#55018) 2023-08-02 15:55:55 -07:00
Mateusz Burzyński
defe33afa1
Do not offer completions for default module member symbol (#55231) 2023-08-01 14:52:40 -07:00
Mateusz Burzyński
6c942fa2c9
Wrap inline negative const enum with parens (#55065)
Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
2023-07-31 16:33:51 -07:00
Zzzen
23eabea067
fix use-before-init error when targeting ES2022 (#55028) 2023-07-28 16:02:09 -07:00
Mateusz Burzyński
6037cf5db8
Provide member completions after dot in type locations using typeof (#54486) 2023-07-28 15:59:52 -07:00
Mateusz Burzyński
4320104404
Do not include undefined in indexed access on tuple types within range of total fixed elements (#54558) 2023-07-28 15:59:31 -07:00
Anders Hejlsberg
c69f4476af
Handle composite signatures in isResolvingReturnTypeOfSignature (#55165) 2023-07-26 15:22:58 -07:00
Anders Hejlsberg
cbf3c63ef3
Revert overly permissive indexed access constraints (#54845) 2023-07-26 07:02:40 -07:00
Oleksandr T
9b4aa3605d
fix(45901): Error 1064 should apply to @callback definitions in the same way as @param, but doesn't (#54625) 2023-07-25 10:17:53 -07:00
Andrew Branch
2170e6c6cc
Proposal: Always allow type-only imports to reference .ts extensions (#54746) 2023-07-24 16:12:38 -07:00
Andrew Branch
fac24ae4f7
Export declarations exporting aliases make the namespace instantiated (#54816) 2023-07-24 12:00:06 -07:00
Wesley Wigham
970733653c
Declaration emit for inlined mapped types preserves modifier-preserving behavior (#55054) 2023-07-24 11:57:36 -07:00
Egor Verbitskiy
7194be067c
fix(53919): Cannot read properties of undefined (reading 'flags') in returnValueCorrect (#53921)
Co-authored-by: everbits <everbitskiy@linkedin.com>
2023-07-21 16:47:25 -07:00
Egor Verbitskiy
7a1f97a61b
fix(54666): Codefix `convertTypedefToType to work for multiple typedefs in a row (#54667)
Co-authored-by: everbits <everbitskiy@linkedin.com>
2023-07-21 09:56:39 -07:00
Kyℓe Hensel
a86be554ab
allow a colon directly after @ts-check/nocheck (#54893) 2023-07-21 09:16:31 -07:00
Maria José Solano
97310107d0
Interactable parameter inlay hints (#54734) 2023-07-20 14:29:51 -07:00
Mateusz Burzyński
b211fe9792
Fixed quick info display for aliased symbols in type-narrowed locations (#54763) 2023-07-20 13:55:23 -07:00
Oleksandr T
2136bef652
fix(54694): Class incorrectly implements interface generated with template string literal mapped type (#54715) 2023-07-20 13:51:32 -07:00
Mateusz Burzyński
5128e06a9d
Fixed expando functions with symbol-only properties (#54726) 2023-07-20 13:20:47 -07:00
Mateusz Burzyński
2623fe7049
Fixed false positive syntax errors with in inside for (#54801)
Co-authored-by: Evan Wallace <evan.exe@gmail.com>
2023-07-20 12:13:44 -07:00
strager
e607c8ed81
fix(54760): Report error for 'declare type' followed by newline (#54761) 2023-07-20 12:13:08 -07:00
Mateusz Burzyński
ec48ce89da
Fixed expando functions with nullish properties (#54728) 2023-07-20 07:55:35 -07:00
Ron Buckton
97ef321fa0
Fix export of enum with same-named member (#55070) 2023-07-19 15:52:19 -04:00
Mateusz Burzyński
8f96638692
Fixed looking up assigned dynamic names on expando function expressions (#54873) 2023-07-19 09:54:25 -07:00
Mateusz Burzyński
adf5e8443b
Grab the left type when narrowing by in operator lazily (#54795) 2023-07-19 10:46:19 -04:00
Oleksandr T
ef0422b40f
fix(54872): Have createUnionOfSignaturesForOverloadFailure() combine @deprecated tags properly (#54945) 2023-07-18 16:42:04 -07:00
Oleksandr T
405251ebd2
fix(54013): bug: Incorrect Typescript completion with computed property name (#54067) 2023-07-18 13:34:01 -07:00
Oleksandr T
f7a93c83ca
fix(54982): "Inline variable" causes failure when variable is used as the initializer of a destructured variable declaration (#54988) 2023-07-17 16:13:00 -07:00
Jake Bailey
8a85b2aafb
Add test case for intersection/constraint bug fixed in 4.9 (#54972) 2023-07-13 16:04:42 -07:00
Jake Bailey
c468960578
Add test for old completion bug from prop of constraint (#54959) 2023-07-13 14:38:50 -07:00
Gabriela Araujo Britto
3b6e35c536
Consider import.meta a qualified name/property access (#54997) 2023-07-13 13:12:20 -07:00
Ryan Cavanaugh
2516583a0c
Ensure all JSX spread properties get visited (#55008) 2023-07-13 09:46:30 -07:00
Jake Bailey
92cbf18e72
Mark return type as referenced for metadata in parameter decorators (#54994) 2023-07-12 12:25:40 -07:00
navya9singh
a602c668fb
Fix(54376) (#54975) 2023-07-12 10:00:32 -07:00
Andrew Branch
69d4d57b61
Add test for const enum usage with verbatimModuleSyntax (#54920) 2023-07-10 16:22:30 -05:00
최지원
328d130e82
Fix export as default not auto importing (#54871) 2023-07-10 09:06:32 -05:00
Oleksandr T
f38e0fe6f0
fix(54902): Incorrect quick info on using declarations (#54912) 2023-07-07 15:07:42 -07:00
Oleksandr T
b1da6eead3
fix(54310): "Move to file" does not eliminate re-export (#54329) 2023-07-07 12:51:07 -05:00