I know I'm talking to myself now, but I've finally finally got my project compiling (with no thanks to the compilers error messages!).
I'm pretty sure I've found a bug in the compiler, but I just can't figure out where.
I have a class called Group. Inside it is a property called transform, which is of the type Phaser.Components.TransformManager:
public transform: Phaser.Components.TransformManager;
If I compile with the type set to that above it errors with "Error 102 Unable to get property 'type' of undefined or null reference D:\wamp\www\phaser\Phaser\VSTSC Phaser" followed by 100 errors of "All named properties must be subtypes of string
indexer type 'any'".
If remove the type from the property:
It all compiles and runs with no errors. I can compile the TransformManager quite happily, there are no errors in it and I'm using it extensively elsewhere in other classes that reference it in exactly the same way as Group does. If I add the type back in,
all hell breaks lose in the compiler.
I've uploaded the complete VS project here in case anyone from MS cares:
You can replicate the error by opening core/Group.ts and un-commenting line 103.
A whole day wasted just boiling it down to this :(