TypeScript/tests/baselines/reference/constEnumExternalModule.js

20 lines
362 B
TypeScript
Raw Normal View History

2014-10-30 08:24:08 +01:00
//// [tests/cases/compiler/constEnumExternalModule.ts] ////
//// [m1.ts]
const enum E {
V = 100
}
export = E
//// [m2.ts]
import A = require('m1')
var v = A.V;
//// [m1.js]
define(["require", "exports"], function (require, exports) {
});
//// [m2.js]
define(["require", "exports"], function (require, exports) {
var v = 100 /* V */;
});