2014-07-13 01:04:16 +02:00
|
|
|
//// [internalAliasFunctionInsideLocalModuleWithExport.ts]
|
|
|
|
export module a {
|
|
|
|
export function foo(x: number) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export module c {
|
|
|
|
export import b = a.foo;
|
|
|
|
export var bVal = b(10);
|
|
|
|
export var bVal2 = b;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasFunctionInsideLocalModuleWithExport.js]
|
2014-09-07 02:40:19 +02:00
|
|
|
var a;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (a) {
|
|
|
|
function foo(x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
a.foo = foo;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(a = exports.a || (exports.a = {}));
|
|
|
|
var c;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (c) {
|
|
|
|
c.b = a.foo;
|
|
|
|
c.bVal = c.b(10);
|
|
|
|
c.bVal2 = c.b;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(c = exports.c || (exports.c = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasFunctionInsideLocalModuleWithExport.d.ts]
|
|
|
|
export declare module a {
|
2014-07-12 01:36:06 +02:00
|
|
|
function foo(x: number): number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
export declare module c {
|
|
|
|
export import b = a.foo;
|
2014-07-12 01:36:06 +02:00
|
|
|
var bVal: number;
|
2014-08-09 01:15:09 +02:00
|
|
|
var bVal2: typeof b;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|