* 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
27 lines
480 B
TypeScript
27 lines
480 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/ambient.ts] ////
|
|
|
|
//// [a.ts]
|
|
export class A { a!: string }
|
|
|
|
//// [b.ts]
|
|
import type { A } from './a';
|
|
declare class B extends A {}
|
|
declare namespace ns {
|
|
class C extends 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;
|