mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
770 B
TypeScript
38 lines
770 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/chained.ts] ////
|
|
|
|
//// [a.ts]
|
|
class A { a!: string }
|
|
export type { A as B };
|
|
export type Z = A;
|
|
|
|
//// [b.ts]
|
|
import { Z as Y } from './a';
|
|
export { B as C } from './a';
|
|
|
|
//// [c.ts]
|
|
import type { C } from './b';
|
|
export { C as D };
|
|
|
|
//// [d.ts]
|
|
import { D } from './c';
|
|
new D();
|
|
const d: D = {};
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class A {
|
|
}
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [c.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [d.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
new D();
|
|
const d = {};
|