2020-02-01 00:09:27 +01:00
|
|
|
//// [tests/cases/conformance/externalModules/typeOnly/exportNamespace3.ts] ////
|
|
|
|
|
|
|
|
//// [a.ts]
|
|
|
|
export class A {}
|
|
|
|
|
|
|
|
//// [b.ts]
|
|
|
|
export type { A } from './a';
|
|
|
|
|
|
|
|
//// [c.ts]
|
|
|
|
export * as a from './b';
|
|
|
|
|
|
|
|
//// [d.ts]
|
|
|
|
import { a } from './c';
|
|
|
|
new a.A(); // Error
|
|
|
|
|
|
|
|
|
|
|
|
//// [a.js]
|
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
2020-02-28 22:25:28 +01:00
|
|
|
exports.A = void 0;
|
2020-02-01 00:09:27 +01:00
|
|
|
var A = /** @class */ (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
return A;
|
|
|
|
}());
|
|
|
|
exports.A = A;
|
|
|
|
//// [b.js]
|
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
//// [c.js]
|
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.a = require("./b");
|
|
|
|
//// [d.js]
|
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
var c_1 = require("./c");
|
|
|
|
new c_1.a.A(); // Error
|