File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
tests/baselines/reference Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ namespace ts {
426
426
427
427
/** Given a symbol for a module, checks that it is either an untyped import or a shorthand ambient module. */
428
428
export function isUntypedOrShorthandAmbientModuleSymbol ( moduleSymbol : Symbol ) : boolean {
429
- return ! moduleSymbol . valueDeclaration || isShorthandAmbientModule ( moduleSymbol . valueDeclaration ) ;
429
+ return ! moduleSymbol . declarations || isShorthandAmbientModule ( moduleSymbol . valueDeclaration ) ;
430
430
}
431
431
432
432
function isShorthandAmbientModule ( node : Node ) : boolean {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
22
22
d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
23
23
} ;
24
24
} ) ( ) ;
25
+ exports . __esModule = true ;
25
26
var foo_1 = require ( "foo" ) ;
26
27
var A = ( function ( _super ) {
27
28
__extends ( A , _super ) ;
You can’t perform that action at this time.
0 commit comments