* Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar * Copy hoisted identifiers so they do not create sourcemaps * Accept updated baselines
47 lines
808 B
TypeScript
47 lines
808 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/exportNamespace4.ts] ////
|
|
|
|
//// [a.ts]
|
|
export class A {}
|
|
|
|
//// [b.ts]
|
|
export type * from './a'; // Grammar error
|
|
|
|
//// [c.ts]
|
|
export type * as ns from './a'; // Grammar error
|
|
|
|
//// [d.ts]
|
|
import { A } from './b';
|
|
A;
|
|
|
|
//// [e.ts]
|
|
import { ns } from './c';
|
|
ns.A;
|
|
|
|
|
|
//// [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;
|
|
//// [d.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var b_1 = require("./b");
|
|
b_1.A;
|
|
//// [e.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var c_1 = require("./c");
|
|
c_1.ns.A;
|