Check for function flag on class symbol
This commit is contained in:
parent
fcfc424b49
commit
37f3ff8d05
1 changed files with 1 additions and 1 deletions
|
@ -6903,7 +6903,7 @@ namespace ts {
|
|||
.expression as PropertyAccessExpression) // x.prototype
|
||||
.expression; // x
|
||||
const classSymbol = checkExpression(className).symbol;
|
||||
if (classSymbol && classSymbol.members) {
|
||||
if (classSymbol && classSymbol.members && (classSymbol.flags & SymbolFlags.Function)) {
|
||||
return getInferredClassType(classSymbol);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue