TypeScript/tests/baselines/reference/exportVisibility.js

24 lines
353 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [exportVisibility.ts]
export class Foo {
}
export var foo = new Foo();
export function test(foo: Foo) {
return true;
}
//// [exportVisibility.js]
var Foo = (function () {
function Foo() {
}
return Foo;
})();
exports.Foo = Foo;
exports.foo = new Foo();
function test(foo) {
return true;
}
exports.test = test;