20 lines
554 B
TypeScript
20 lines
554 B
TypeScript
import m4 = require("m4"); // Emit used
|
|
export var x4 = m4.x;
|
|
export var d4 = m4.d;
|
|
export var f4 = m4.foo();
|
|
|
|
export module m1 {
|
|
export var x2 = m4.x;
|
|
export var d2 = m4.d;
|
|
export var f2 = m4.foo();
|
|
|
|
var x3 = m4.x;
|
|
var d3 = m4.d;
|
|
var f3 = m4.foo();
|
|
}
|
|
|
|
// Do not emit multiple used import statements
|
|
import multiImport_m4 = require("m4"); // Emit used
|
|
export var useMultiImport_m4_x4 = multiImport_m4.x;
|
|
export var useMultiImport_m4_d4 = multiImport_m4.d;
|
|
export var useMultiImport_m4_f4 = multiImport_m4.foo(); |