43 lines
No EOL
618 B
JavaScript
43 lines
No EOL
618 B
JavaScript
//// [internalAliasInterface.ts]
|
|
module a {
|
|
export interface I {
|
|
}
|
|
}
|
|
|
|
module c {
|
|
import b = a.I;
|
|
export var x: b;
|
|
}
|
|
|
|
|
|
//// [internalAliasInterface.js]
|
|
var c;
|
|
(function (c) {
|
|
c.x;
|
|
})(c || (c = {}));
|
|
|
|
|
|
//// [internalAliasInterface.d.ts]
|
|
declare module a {
|
|
interface I {
|
|
}
|
|
}
|
|
declare module c {
|
|
var x: b;
|
|
}
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
==== tests/cases/compiler/internalAliasInterface.d.ts (1 errors) ====
|
|
declare module a {
|
|
interface I {
|
|
}
|
|
}
|
|
declare module c {
|
|
var x: b;
|
|
~
|
|
!!! Cannot find name 'b'.
|
|
}
|
|
|