c6c2c4c8d5
* 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
32 lines
626 B
TypeScript
32 lines
626 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/generic.ts] ////
|
|
|
|
//// [a.ts]
|
|
export class A<T> { a!: T }
|
|
export type { A as B };
|
|
|
|
//// [b.ts]
|
|
import type { A } from './a';
|
|
import { B } from './a';
|
|
let a: A<string> = { a: "" };
|
|
let b: B<number> = { a: 3 };
|
|
let c: A<boolean> = {};
|
|
let d: B = { 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;
|
|
var a = { a: "" };
|
|
var b = { a: 3 };
|
|
var c = {};
|
|
var d = { a: "" };
|