I recently got a legacy .ts-file and want to update it.
Two of the warnings say:
'namespace' and 'module' are disallowed
and
The internal 'module' syntax is deprecated, use the 'namespace' keyword instead.
I read about using standardized ES6-style external modules, but I cannot figure out, how to do this.
My code looks like the following:
export namespace MySpace
{
export module MyModule
{
export interface MyInterface
{
}
export class MyClass
{
}
...
}
}
May anyone give me a hint, how to update this structure to actual style rules?
thank you all a lot in advance!
best regards
mrt