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 8a41f5f commit 91123fcCopy full SHA for 91123fc
src/compiler/checker.ts
@@ -27759,7 +27759,7 @@ namespace ts {
27759
type = getApparentType(type);
27760
const propsByName = createSymbolTable(getPropertiesOfType(type));
27761
const functionType = getSignaturesOfType(type, SignatureKind.Call).length ? globalCallableFunctionType :
27762
- getSignaturesOfType(type, SignatureKind.Call).length ? globalNewableFunctionType :
+ getSignaturesOfType(type, SignatureKind.Construct).length ? globalNewableFunctionType :
27763
undefined;
27764
if (functionType) {
27765
forEach(getPropertiesOfType(functionType), p => {
0 commit comments