TypeScript/tests/baselines/reference/exportVisibility.js
2015-12-08 17:51:10 -08:00

25 lines
368 B
TypeScript

//// [exportVisibility.ts]
export class Foo {
}
export var foo = new Foo();
export function test(foo: Foo) {
return true;
}
//// [exportVisibility.js]
"use strict";
var Foo = (function () {
function Foo() {
}
return Foo;
}());
exports.Foo = Foo;
exports.foo = new Foo();
function test(foo) {
return true;
}
exports.test = test;