We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 776125b commit b823694Copy full SHA for b823694
packages/language-server/src/plugins/typescript/ComponentInfoProvider.ts
@@ -76,7 +76,11 @@ export class JsOrTsComponentInfoProvider implements ComponentInfoProvider {
76
.getProperties()
77
.map((prop) => {
78
// type would still be correct when there're multiple declarations
79
- const declaration = prop.valueDeclaration ?? prop.declarations?.[0];
+ const declaration =
80
+ prop.valueDeclaration ??
81
+ prop.declarations?.[0] ??
82
+ // very complex types are hidden on this thing for some reason
83
+ (prop as any)?.links?.mappedType?.declaration;
84
if (!declaration) {
85
return;
86
}
0 commit comments