Minor fix

This commit is contained in:
Anders Hejlsberg
2018-09-11 08:11:32 -07:00
parent 8a41f5f04b
commit 91123fc544

View File

@@ -27759,7 +27759,7 @@ namespace ts {
type = getApparentType(type);
const propsByName = createSymbolTable(getPropertiesOfType(type));
const functionType = getSignaturesOfType(type, SignatureKind.Call).length ? globalCallableFunctionType :
getSignaturesOfType(type, SignatureKind.Call).length ? globalNewableFunctionType :
getSignaturesOfType(type, SignatureKind.Construct).length ? globalNewableFunctionType :
undefined;
if (functionType) {
forEach(getPropertiesOfType(functionType), p => {