mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
687 B
TypeScript
32 lines
687 B
TypeScript
//// [tests/cases/compiler/exportDefaultProperty2.ts] ////
|
|
|
|
//// [a.ts]
|
|
class C {
|
|
static B: number;
|
|
}
|
|
namespace C {
|
|
export interface B { c: number }
|
|
}
|
|
|
|
export default C.B;
|
|
|
|
//// [b.ts]
|
|
import B from "./a";
|
|
const x: B = { c: B };
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class C {
|
|
}
|
|
exports.default = C.B;
|
|
//// [b.js]
|
|
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const a_1 = __importDefault(require("./a"));
|
|
const x = { c: a_1.default };
|