mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
874 B
TypeScript
31 lines
874 B
TypeScript
//// [tests/cases/compiler/globalThisDeclarationEmit3.ts] ////
|
|
|
|
//// [index.ts]
|
|
import { variable } from "./variable";
|
|
export { variable as globalThis };
|
|
|
|
//// [variable.ts]
|
|
import mod = globalThis;
|
|
export { mod as variable };
|
|
|
|
//// [variable.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.variable = void 0;
|
|
var mod = globalThis;
|
|
exports.variable = mod;
|
|
//// [index.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.globalThis = void 0;
|
|
const variable_1 = require("./variable");
|
|
Object.defineProperty(exports, "globalThis", { enumerable: true, get: function () { return variable_1.variable; } });
|
|
|
|
|
|
//// [variable.d.ts]
|
|
import mod = globalThis;
|
|
export { mod as variable };
|
|
//// [index.d.ts]
|
|
import { variable } from "./variable";
|
|
export { variable as globalThis };
|