I have recently acquired a legacy .ts file that I would like to update.
Two warnings appear:
'namespace' and 'module' are disallowed
and
The internal 'module' syntax is deprecated, use the 'namespace' keyword instead.
I have been reading about transitioning to standardized ES6-style external modules, but I am struggling to implement this.
The current structure of my code looks as follows:
export namespace MySpace
{
export module MyModule
{
export interface MyInterface
{
}
export class MyClass
{
}
...
}
}
Could someone please provide guidance on how to update this structure to comply with modern style rules?
Thank you all in advance for your help!
Best regards,
mrt