TypeScript/tests/baselines/reference/partiallyAmbientClodule.js
2014-08-14 16:36:33 -07:00

13 lines
292 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;
})(); // Legal, because module is ambient