39 lines
687 B
TypeScript
39 lines
687 B
TypeScript
//// [functionMergedWithModule.ts]
|
|
function foo(title: string) {
|
|
var x = 10;
|
|
}
|
|
|
|
module foo.Bar {
|
|
export function f() {
|
|
}
|
|
}
|
|
|
|
module foo.Baz {
|
|
export function g() {
|
|
Bar.f();
|
|
}
|
|
}
|
|
|
|
//// [functionMergedWithModule.js]
|
|
function foo(title) {
|
|
var x = 10;
|
|
}
|
|
var foo;
|
|
(function (foo) {
|
|
var Bar;
|
|
(function (Bar) {
|
|
function f() {
|
|
}
|
|
Bar.f = f;
|
|
})(Bar = foo.Bar || (foo.Bar = {}));
|
|
})(foo || (foo = {}));
|
|
var foo;
|
|
(function (foo) {
|
|
var Baz;
|
|
(function (Baz) {
|
|
function g() {
|
|
foo.Bar.f();
|
|
}
|
|
Baz.g = g;
|
|
})(Baz = foo.Baz || (foo.Baz = {}));
|
|
})(foo || (foo = {}));
|