i'm working on a personal project with Typescript.
To have a nice code and expendable code i want to split my code like that => One class One file, using namespace or module, i didnt see the difference !
But how can i call one file et be able to select all class which are inside this namespace ?
I had take a look into StackOverflow database but i haven't found anything !
For example:
// FileOne.ts
namespace Controllers {
export class A {}
}
// FileTwo.ts
namespace Controllers {
export class B {}
}
// index.ts
namespace App {
constructor() {
new Controllers.B();
new Controllers.A();
}
}
So if you have an idea ?
Thanks !