mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
688 B
TypeScript
29 lines
688 B
TypeScript
//// [tests/cases/compiler/chainedImportAlias.ts] ////
|
|
|
|
//// [chainedImportAlias_file0.ts]
|
|
export namespace m {
|
|
export function foo() { }
|
|
}
|
|
|
|
//// [chainedImportAlias_file1.ts]
|
|
import x = require('./chainedImportAlias_file0');
|
|
import y = x;
|
|
y.m.foo();
|
|
|
|
|
|
//// [chainedImportAlias_file0.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.m = void 0;
|
|
var m;
|
|
(function (m) {
|
|
function foo() { }
|
|
m.foo = foo;
|
|
})(m || (exports.m = m = {}));
|
|
//// [chainedImportAlias_file1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const x = require("./chainedImportAlias_file0");
|
|
var y = x;
|
|
y.m.foo();
|