Working with TypeScript 2.2 in VS2015 I have a base class with a derived class which in turn has a derived class.
When compiling I receive an error that "A class must be declared after its base class". Each of the classes are in their own files so it appears that they are compiled in alphabetical order because if I rename the base class with "aa" so it comes first alphabetically then the solution compiles.
I could (and originally did) have all the classes in one file, in that case I can control the order but I don't want to have to put all the derived classes in the same file.
Am I doing something wrong here, shouldn't it compile the lowest dependency first?