Any ideas how I can access this static property in a external module? The class Game in game.ts contains the actual static property but Game is not accessable to the module GameObjects
///<reference path="game.ts" />
export module GameObjects {
export class Player implements GameObject {
color: string = Game.staticProperty;
etc
If you are exporting classes from modules in this style, you’ll need to import like this:
game.ts
player.ts
This will also generate the
requirestatement to load the module for you.