mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
552 B
TypeScript
26 lines
552 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/nestedNamespace.ts] ////
|
|
|
|
//// [a.ts]
|
|
export namespace types {
|
|
export class A {}
|
|
}
|
|
|
|
//// [b.ts]
|
|
import type * as a from './a';
|
|
interface B extends a.types.A {}
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.types = void 0;
|
|
var types;
|
|
(function (types) {
|
|
class A {
|
|
}
|
|
types.A = A;
|
|
})(types || (exports.types = types = {}));
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|