TypeScript/tests/baselines/reference/exportStarForValues9.js
2015-12-08 13:28:55 -08:00

41 lines
956 B
TypeScript

//// [tests/cases/compiler/exportStarForValues9.ts] ////
//// [file1.ts]
export interface Foo { x }
//// [file2.ts]
export interface A { x }
export * from "file1"
export * from "file3"
export var x = 1;
//// [file3.ts]
export interface B { x }
export * from "file2"
export var x = 1;
//// [file1.js]
define(["require", "exports"], function (require, exports) {
"use strict";
});
//// [file3.js]
define(["require", "exports", "file2"], function (require, exports, file2_1) {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(file2_1);
exports.x = 1;
});
//// [file2.js]
define(["require", "exports", "file3"], function (require, exports, file3_1) {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(file3_1);
exports.x = 1;
});