Commit Graph
17091 Commits
Author SHA1 Message Date
Oleksandr T 30fe6ada02 fix(55227): useUnknownInCatchVariables sets default value differently to other strict commandline options (#55230) 2023-08-02 11:32:46 -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ńskiandOleksandr T 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
Jake Bailey 6a96b9767e Enable eslint rule no-useless-escape (#55138) 2023-07-28 16:02:38 -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
Jake Bailey a6df6c04d5 Enable @typescript-eslint/ban-types (#55133) 2023-07-27 15:58:17 -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
Jake Bailey d63af29eaf Triage and fix some eslint rules (#55136) 2023-07-24 13:53:12 -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
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
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ńskiandEvan Wallace 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 02e8d5ec61 fix(54951): using being too strict to throw on Function type (#54969) 2023-07-17 18:32:25 -04:00
Josh Goldberg ✨andJake Bailey 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
Sheetal Nandi 5464403848 ParseConfigHost needs to extend ModuleResolutionHost (#54922) 2023-07-10 11:40:40 -07: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
Andrew Branch f4d372aef4 Fix auto import path mapping when first pattern fails (#54868) 2023-07-03 15:02:13 -07:00
Andrew BranchandJake Bailey 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
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
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 WorksandNathan Shively-Sanders 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
Mateusz Burzyński a3773ec590 Avoid subtype reduction when creating a union result in discriminateTypeByDiscriminableItems (#54052) 2023-06-27 11:55:46 -07:00
navya9singhandDaniel Rosenwasser 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
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
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