TypeScript/tests/cases/compiler/internalAliasFunctionInsideTopLevelModuleWithoutExport.ts
2014-07-12 17:30:19 -07:00

12 lines
200 B
TypeScript

//@module: commonjs
// @declaration: true
export module a {
export function foo(x: number) {
return x;
}
}
import b = a.foo;
export var bVal = b(10);
export var bVal2 = b;