File: elidingImportNames.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (32 lines) | stat: -rw-r--r-- 866 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//// [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";
exports.__esModule = true;
exports.main = 10;
//// [elidingImportNames_main1.js]
"use strict";
exports.__esModule = true;
exports.main = 10;
//// [elidingImportNames_test.js]
"use strict";
exports.__esModule = true;
var a = require("./elidingImportNames_main"); // alias used in typeof
var b = a;
var x;
var a2 = require("./elidingImportNames_main1"); // alias not used in typeof
var b2 = a2;