Fixed errors with overloaded method exports

This commit is contained in:
Bill Ticehurst
2016-10-11 17:51:53 -07:00
parent 49fd35da33
commit a4e7bff759
2 changed files with 22 additions and 1 deletions

View File

@@ -17893,7 +17893,8 @@ namespace ts {
}
function isNotOverload(declaration: Declaration): boolean {
return declaration.kind !== SyntaxKind.FunctionDeclaration || !!(declaration as FunctionDeclaration).body;
return (declaration.kind !== SyntaxKind.FunctionDeclaration && declaration.kind !== SyntaxKind.MethodDeclaration) ||
!!(declaration as FunctionDeclaration).body;
}
}