mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
//// [tests/cases/compiler/elidingImportNames.ts] ////
|
|
|
|
//// [elidingImportNames_test.ts]
|
|
import a = require('./elidingImportNames_main'); // alias used in typeof
|
|
var b = a;
|
|
var x: typeof a;
|
|
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
|
var b2 = a2;
|
|
|
|
|
|
//// [elidingImportNames_main.ts]
|
|
export var main = 10;
|
|
|
|
//// [elidingImportNames_main1.ts]
|
|
export var main = 10;
|
|
|
|
//// [elidingImportNames_main.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.main = void 0;
|
|
exports.main = 10;
|
|
//// [elidingImportNames_main1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.main = void 0;
|
|
exports.main = 10;
|
|
//// [elidingImportNames_test.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const a = require("./elidingImportNames_main"); // alias used in typeof
|
|
var b = a;
|
|
var x;
|
|
const a2 = require("./elidingImportNames_main1"); // alias not used in typeof
|
|
var b2 = a2;
|