40 lines
715 B
TypeScript
40 lines
715 B
TypeScript
//// [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;
|
|
exports.A = void 0;
|
|
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 = void 0;
|
|
exports.a = require("./b");
|
|
//// [d.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var c_1 = require("./c");
|
|
new c_1.a.A(); // Error
|