Commit Graph

25670 Commits

Author SHA1 Message Date
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
Oleksandr T
02e8d5ec61 fix(54951): using being too strict to throw on Function type (#54969) 2023-07-17 18:32:25 -04:00
Josh Goldberg ✨
0ae8ca11d2 Updated typescript-eslint to v6 (#54693)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-14 15:36:10 -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
Sheetal Nandi
5464403848 ParseConfigHost needs to extend ModuleResolutionHost (#54922) 2023-07-10 11:40:40 -07: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
Andrew Branch
22a9ae9eed Offer auto-imports from wildcard exports with AutoImportProvider (#54831) 2023-07-07 12:50:38 -05:00
Nathan Shively-Sanders
e374eba37c scanNumber: smaller return value + side effects (#54534) 2023-07-06 16:07:31 -07:00
Mateusz Burzyński
bd61cbb1f3 Infer into recursive mapped type targets (#53647) 2023-07-06 13:46:46 -07:00
Nathan Shively-Sanders
a05699c9b9 Emit @overload comments on generated overloads in.d.ts (#54846) 2023-07-06 13:23:06 -07:00
Maria José Solano
89f6ef9d78 Use baselines for inlay hints testing (#54844) 2023-07-05 12:08:56 -07:00
Jake Bailey
07e6962a58 Remove lib.d.ts line number info from new definition baselines (#54875) 2023-07-05 10:31:46 -07:00
Andrew Branch
f4d372aef4 Fix auto import path mapping when first pattern fails (#54868) 2023-07-03 15:02:13 -07:00
Andrew Branch
88d59e40e4 Fix path completions with sibling dts lookup in exports (#54869) 2023-07-03 14:16:16 -07:00
Andrew Branch
5932420b0f Fix self-name input linking for --allowJs --declaration projects (#54819)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-03 11:17:07 -07:00
Jake Bailey
8c7385f8b5 Eliminate addJSDocComment in favor of consistently using withJSDoc (#54802) 2023-06-30 17:05:07 -07:00
Joshua Chen
e4cc532e14 Make bodiless declarations an error in JS (#54439) 2023-06-30 16:53:51 -07:00
Oleksandr T
a437de66b6 fix(54818): "from" keyword displaying incorrect completions (#54843) 2023-06-30 12:06:11 -07:00
Jack Works
bd1e9752d2 fix: import keyword name (#54675)
Co-authored-by: Isabel Duan <iduan@hmc.edu>
2023-06-30 10:14:43 -07:00
Andrew Branch
76869eeda1 Fix relative path completions when self package.json has typesVersions (#54842) 2023-06-30 10:13:22 -07:00
Mateusz Burzyński
3073b5209b Extend isTupleLikeType to also check if .length is a number literal type (#52617) 2023-06-29 19:13:02 -07:00
Matej 'Yin' Sadovsky
34f6e107a3 Enable parsing of nested parameters for @callback JSDoc tag. (#54681)
Co-authored-by: Matej Sadovsky <matej.sadov@gmail.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:36:38 -07:00
Jack Works
ed5008da68 Improve error for unclosed imports and exports (#54634)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:22:05 -07:00
Mateusz Burzyński
18e19492be Fixed parenthesized array literal expressions spread in calls not being tupleized (#54623) 2023-06-29 10:15:19 -07:00
Andrew Branch
c97e4b64a0 Fix auto imports in JS files in nodenext (#54817) 2023-06-28 15:03:14 -07:00
Mateusz Burzyński
a3773ec590 Avoid subtype reduction when creating a union result in discriminateTypeByDiscriminableItems (#54052) 2023-06-27 11:55:46 -07:00
navya9singh
13460aee86 Fix(52604): Provide Object member completions without comma; insert a comma (#52899)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-06-26 18:06:27 -07:00
Oleksandr T
df40c7ae88 fix(51868): this within function typed as any when annotated with JSDoc (#54516) 2023-06-26 15:00:10 -07:00
Maria José Solano
38575dc015 Fix missing parentheses in inline variable (#54737) 2023-06-26 14:08:59 -07:00
Daniel Rosenwasser
f762de5220 Do not mark indexed access object type comparisons as unreliable. (#54781) 2023-06-26 13:21:10 -07:00
Mateusz Burzyński
4cac28ed57 Remove unused diagnostic 2346 (#54442) 2023-06-26 11:43:09 -07:00
Vitaly
38a4ced4e3 fix: no variable suggestions without semicolon (#54656) 2023-06-26 10:44:02 -07:00
Josh Goldberg ✨
5b85e9469a Allowed tuples to have both named and anonymous members (#53356)
Co-authored-by: Jake Bailey <jabaile@microsoft.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: Daniel Rosenwasser <drosenwasser@microsoft.com>
2023-06-26 10:22:41 -07:00
Chi Leung
a94eb319eb Transform namespaces declared with module keyword to namespace keyword in d.ts files (#54134)
Signed-off-by: Chi Leung <chiguan.leung@gmail.com>
Co-authored-by: Titian Cernicova-Dragomir <dragomirtitian@yahoo.com>
Co-authored-by: Titian Cernicova-Dragomir <tcernicovad1@bloomberg.net>
2023-06-26 12:58:23 -04:00
Oleksandr T
de6e6abbac fix(54465): Broken emit with private field in class decorator (#54679) 2023-06-23 17:09:48 -04:00