mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
662 B
TypeScript
31 lines
662 B
TypeScript
//// [tests/cases/compiler/exportEqualsDefaultProperty.ts] ////
|
|
|
|
//// [exp.ts]
|
|
var x = {
|
|
"greeting": "hello, world",
|
|
"default": 42
|
|
};
|
|
|
|
export = x
|
|
|
|
//// [imp.ts]
|
|
import foo from "./exp";
|
|
foo.toExponential(2);
|
|
|
|
|
|
//// [exp.js]
|
|
"use strict";
|
|
var x = {
|
|
"greeting": "hello, world",
|
|
"default": 42
|
|
};
|
|
module.exports = x;
|
|
//// [imp.js]
|
|
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const exp_1 = __importDefault(require("./exp"));
|
|
exp_1.default.toExponential(2);
|