Last active
December 12, 2015 10:08
-
-
Save SPY/4756905 to your computer and use it in GitHub Desktop.
typescript module usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Game.Player { | |
class Player { | |
public skills: Skill[]; | |
} | |
export class Skill { | |
} | |
} | |
module Game.Monster { | |
import Player = Game.Player; | |
class Monster { | |
public skills: Skill[]; | |
public playerSkill: Player.Skill[]; | |
} | |
class Skill { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment