Skip to content

Commit de50910

Browse files
author
Andy Hanson
committed
Fix failing tests
1 parent 43aafb9 commit de50910

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ namespace ts {
426426

427427
/** Given a symbol for a module, checks that it is either an untyped import or a shorthand ambient module. */
428428
export function isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {
429-
return !moduleSymbol.valueDeclaration || isShorthandAmbientModule(moduleSymbol.valueDeclaration);
429+
return !moduleSymbol.declarations || isShorthandAmbientModule(moduleSymbol.valueDeclaration);
430430
}
431431

432432
function isShorthandAmbientModule(node: Node): boolean {

tests/baselines/reference/extendsUntypedModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
2222
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2323
};
2424
})();
25+
exports.__esModule = true;
2526
var foo_1 = require("foo");
2627
var A = (function (_super) {
2728
__extends(A, _super);

0 commit comments

Comments
 (0)