26 lines
482 B
TypeScript
26 lines
482 B
TypeScript
//// [tests/cases/compiler/dependencyViaImportAlias.ts] ////
|
|
|
|
//// [A.ts]
|
|
export class A {
|
|
}
|
|
//// [B.ts]
|
|
import a = require('A');
|
|
|
|
import A = a.A;
|
|
|
|
export = A;
|
|
|
|
//// [A.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
return A;
|
|
})();
|
|
exports.A = A;
|
|
});
|
|
//// [B.js]
|
|
define(["require", "exports", 'A'], function (require, exports, a) {
|
|
var A = a.A;
|
|
return A;
|
|
});
|