Typescript dtos generated in incorrect order

As per our previous conversation, I have since made sure that the ServiceModel project is dep free.

However I am experiencing an issue where the types generated are not in the correct order, which TypeScript moans about.

If you have a look at the types generated here the problem occurs around line 288. The ApiServiceResponse class should be moved two classes higher above GetScheduleResponse.

Any ideas why this ordering is not correct?

This should be resolved on MyGet.

Awesome thanks Demis.