This commit is contained in:
navya9singh 2023-02-21 19:51:36 +00:00
Родитель 6b6a59e9a0
Коммит 08cd75ded2
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -3342,6 +3342,8 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
});
}
if (isPrototypeProperty && namespaceSymbol && namespaceSymbol.valueDeclaration && isAssignmentDeclaration(namespaceSymbol.valueDeclaration)) {
//A prototype property assignment to something that looks class-like shouldn't actually count if the class-likeness came from an assignment declaration.
//The checker requires an actual class/constructor function to attach the prototype property to.
containerIsClass = false;
}
if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) {