mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
588 B
TypeScript
25 lines
588 B
TypeScript
//// [tests/cases/conformance/externalModules/topLevelFileModule.ts] ////
|
|
|
|
//// [foo_0.ts]
|
|
export var x: number;
|
|
|
|
//// [fum.d.ts]
|
|
export declare var y: number;
|
|
|
|
//// [foo_1.ts]
|
|
import foo = require("./vs/foo_0");
|
|
import fum = require("./vs/fum");
|
|
var z = foo.x + fum.y;
|
|
|
|
|
|
//// [foo_0.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.x = void 0;
|
|
//// [foo_1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const foo = require("./vs/foo_0");
|
|
const fum = require("./vs/fum");
|
|
var z = foo.x + fum.y;
|