TypeScript/tests/baselines/reference/partiallyAmbientClodule.js

13 lines
291 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [partiallyAmbientClodule.ts]
declare module foo {
export function x(): any;
}
class foo { } // Legal, because module is ambient
//// [partiallyAmbientClodule.js]
var foo = (function () {
function foo() {
}
return foo;
})(); // Legal, because module is ambient