I have several files (modules) exporting objects and functions:
directory/
--> FileA.ts
--> FileB.ts
--> FileC.ts
My goal is to re-export all these functions/objects from all these files under the same alias. What I would like to do is create a new file AllClasses.ts that re-exports everything under the same alias.
Wrong example 1 of ./AllFiles.ts:
export * as AllClasses from
'./FileA.ts',
'./FileB.ts',
'./FileC.ts';
Wrong example 2 of ./AllFiles.ts:
import * as ClassA from './FileA.ts';
import * as ClassB from './FileB.ts';
import * as ClassC from './FileC.ts';
export {ClassA, ClassB, ClassC} as AllFiles;
I have searched on StackOverflow, Typescript Handbook or other websites for a similar way to do that but couldn't find any.