36 lines
No EOL
757 B
JavaScript
36 lines
No EOL
757 B
JavaScript
//// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts]
|
|
export module a {
|
|
export interface I {
|
|
}
|
|
}
|
|
|
|
import b = a.I;
|
|
export var x: b;
|
|
|
|
|
|
//// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
exports.x;
|
|
});
|
|
|
|
|
|
//// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.d.ts]
|
|
export declare module a {
|
|
interface I {
|
|
}
|
|
}
|
|
export declare var x: b;
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
==== tests/cases/compiler/internalAliasInterfaceInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
|
export declare module a {
|
|
interface I {
|
|
}
|
|
}
|
|
export declare var x: b;
|
|
~
|
|
!!! Cannot find name 'b'.
|
|
|