diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index eef82b1032a..402786dc6ab 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3373,7 +3373,7 @@ namespace ts { function getDefaultConstructSignatures(classType: InterfaceType): Signature[] { const baseConstructorType = getBaseConstructorTypeOfClass(classType); const baseSignatures = getSignaturesOfType(baseConstructorType, SignatureKind.Construct); - if(baseSignatures.length === 0) { + if (baseSignatures.length === 0) { return [createSignature(undefined, classType.localTypeParameters, emptyArray, classType, undefined, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false)]; } const baseTypeNode = getBaseTypeNodeOfClass(classType); @@ -3593,7 +3593,6 @@ namespace ts { return type; } - /** Return properties of an object type or an empty array for other types */ function getPropertiesOfObjectType(type: Type): Symbol[] { if (type.flags & TypeFlags.ObjectType) {