TypeScript/tests/baselines/reference/partiallyAmbientClodule.js
2014-07-12 17:30:19 -07:00

13 lines
255 B
JavaScript

//// [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;
})();