You can just add the following two lines to your MathAll.ts
file:
export import MathBasics = require("MathBasics");
export import MathAdvanced = require("MathAdvanced");
This will allow you to essentially import both using the MathAll
psudeo-module...
import math = require('./MathAll');
math.MathAdvanced....
But it can play some havoc with your auto-completion and there were some hints that this may be disallowed in the future, which will then break your program - so beware of using this trick.
So now I have shown how you could do it, hopefully you'll accept my suggestion that you don't do it (because you know I'm not saying "don't do it" just because I don't know how you could do it).
Organise your modules in a way that makes each one sensible to import in its own right. Is it such a hardship to import MathBasics
when I need it, and MathAdvanced
when I need it?
If you are hiding implementation details, that is another matter - but you definitely aren't hiding implementation details when you export import
- because you are showing off all the details by exporting them straight out.