13 lines
255 B
JavaScript
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;
|
||
|
})();
|