38 lines
673 B
TypeScript
38 lines
673 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;
|
||
|
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
|