I have a typescript module and I am looking to define symbols within the 'aaa' namespace from multiple files.
Here is an example of what my code looks like:
a.ts:
export namespace aaa {
export const a = "a";
}
b.ts:
export namespace aaa {
export const b = "b";
}
index.ts:
export * from "./a";
export * from "./b";
However, when I try to compile my code, I receive the following warning in the second line of index.ts:
TS2308: Module "./b" has already exported a member named 'aaa'. Consider
explicitly re-exporting to resolve the ambiguity.
My question is, how can I correctly define symbols within the same namespace across multiple files and then export them all under index.ts?