Fix failing tests

This commit is contained in:
Andy Hanson
2017-02-14 06:53:44 -08:00
parent 43aafb9f73
commit de5091081a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ namespace ts {
/** Given a symbol for a module, checks that it is either an untyped import or a shorthand ambient module. */
export function isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {
return !moduleSymbol.valueDeclaration || isShorthandAmbientModule(moduleSymbol.valueDeclaration);
return !moduleSymbol.declarations || isShorthandAmbientModule(moduleSymbol.valueDeclaration);
}
function isShorthandAmbientModule(node: Node): boolean {