mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
599 B
TypeScript
27 lines
599 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/exportNamespace10.ts] ////
|
|
|
|
//// [a.ts]
|
|
export class A {}
|
|
|
|
//// [b.ts]
|
|
export type * as ns from "./a";
|
|
|
|
//// [c.ts]
|
|
import { ns } from "./b";
|
|
let _: ns.A = new ns.A(); // Error
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.A = void 0;
|
|
class A {
|
|
}
|
|
exports.A = A;
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [c.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
let _ = new ns.A(); // Error
|