Fix error on extends in declaration file with importHelpers

This commit is contained in:
Ron Buckton
2016-12-08 13:43:32 -08:00
parent 07ce4bd2e3
commit 09761b5f07
4 changed files with 26 additions and 1 deletions

View File

@@ -17999,7 +17999,7 @@ namespace ts {
const baseTypeNode = getClassExtendsHeritageClauseElement(node);
if (baseTypeNode) {
if (languageVersion < ScriptTarget.ES2015) {
if (languageVersion < ScriptTarget.ES2015 && !isInAmbientContext(node)) {
checkExternalEmitHelpers(baseTypeNode.parent, ExternalEmitHelpers.Extends);
}