mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
624 B
TypeScript
34 lines
624 B
TypeScript
//// [tests/cases/compiler/declarationEmitExpandoFunctionInNamespace.ts] ////
|
|
|
|
//// [declarationEmitExpandoFunctionInNamespace.ts]
|
|
namespace NS {
|
|
export function f(): void {}
|
|
f.a = "";
|
|
}
|
|
|
|
namespace Outer {
|
|
export namespace Inner {
|
|
export function g(): void {}
|
|
g.b = 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [declarationEmitExpandoFunctionInNamespace.d.ts]
|
|
declare namespace NS {
|
|
function f(): void;
|
|
namespace f {
|
|
var a: string;
|
|
}
|
|
}
|
|
declare namespace Outer {
|
|
namespace Inner {
|
|
function g(): void;
|
|
namespace g {
|
|
var b: number;
|
|
}
|
|
}
|
|
}
|